Skip to content

Commit

Permalink
Fixed issue #7014: "R" entry in User control Page
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Dec 5, 2012
1 parent bb6994a commit a40d6b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion application/helpers/common_helper.php
Expand Up @@ -1336,7 +1336,10 @@ function getUserList($outputformat='fullinfoarray')
)
)
UNION
SELECT {$sSelectFields} from {{users}} v where v.parent_id={$myuid}";
SELECT {$sSelectFields} from {{users}} v where v.parent_id={$myuid}
UNION
SELECT {$sSelectFields} from {{users}} v where uid={$myuid}";

}
else
{
Expand Down
4 changes: 3 additions & 1 deletion application/views/admin/user/editusers.php
Expand Up @@ -102,7 +102,9 @@
<td><a href='mailto:<?php echo htmlspecialchars($usr['email']);?>'><?php echo htmlspecialchars($usr['email']);?></a></td>
<td><?php echo htmlspecialchars($usr['full_name']);?></td>

<td><?php echo $noofsurveyslist[$i];?></td>
<?php if(Yii::app()->session['USER_RIGHT_SUPERADMIN'] == 1) { ?>
<td><?php echo $noofsurveyslist[$i];?></td>
<?php } ?>

<?php $uquery = "SELECT users_name FROM {{users}} WHERE uid=".$usr['parent_id'];
$uresult = dbExecuteAssoc($uquery); //Checked
Expand Down

0 comments on commit a40d6b1

Please sign in to comment.