This two functions return different values to accepted invitations.
Proposal: Change invite_user_overview
@@ -346,7 +346,7 @@
switch ($page) {
case 'accepted':
default:
- $sql = "SELECT i.*, u.uid AS account FROM {invite} i LEFT JOIN {users} u ON u.uid = i.invitee AND u.uid <> 0 WHERE i.uid = %d AND i.joined <> 0 AND canceled = 0 ORDER BY u.uid DESC";
+ $sql = "SELECT i.*, u.uid AS account FROM {invite} i LEFT JOIN {users} u ON u.uid = i.invitee AND u.uid <> 0 WHERE i.uid = %d AND i.joined <> 0 ORDER BY u.uid DESC";
break;
case 'pending':
$sql = "SELECT * FROM {invite} WHERE uid = %d AND joined = 0 AND canceled = 0 AND expiry >= %d ORDER BY expiry DESC";
@@ -372,7 +372,7 @@
$row[] = check_plain($invite->email);
}
$row[] = $account_exists ? t('Accepted') : t('Deleted');
- $row[] = $allow_delete ? l(t('withdraw'), "invite/withdraw/$page/$invite->reg_code") : '';
+ $row[] = $allow_delete && !$invite->canceled ? l(t('withdraw'), "invite/withdraw/$page/$invite->reg_code") : '';
$row[] = '';
break;
Comments
Comment #1
ryan osītis commentedComment #2
ryan osītis commented