Skip to content

Commit

Permalink
Fixed issue #13057: When editing CPDB participant the owner is listed…
Browse files Browse the repository at this point in the history
… by user name instead of full name
  • Loading branch information
c-schmitz committed Feb 16, 2018
1 parent a644ffc commit 2401e3d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -63,13 +63,13 @@
<?php // When we add a new user, owner is default to current user ?>
<?php if ($editType == 'add'): ?>
<?php foreach ($users as $user): ?>
<option <?php if (Yii::app()->user->id == $user->uid): echo ' selected="selected" '; endif; ?> value='<?php echo $user->uid; ?>'><?php echo $user->users_name; ?></option>
<option <?php if (Yii::app()->user->id == $user->uid): echo ' selected="selected" '; endif; ?> value='<?php echo $user->uid; ?>'><?php echo $user->full_name; ?></option>
<?php endforeach; ?>

<?php // When we add a user, owner is set to current owner ?>
<?php else: ?>
<?php foreach ($users as $user): ?>
<option <?php if ($model->owner_uid == $user->uid): echo ' selected="selected" '; endif; ?> value='<?php echo $user->uid; ?>'><?php echo $user->users_name; ?></option>
<option <?php if ($model->owner_uid == $user->uid): echo ' selected="selected" '; endif; ?> value='<?php echo $user->uid; ?>'><?php echo $user->full_name; ?></option>
<?php endforeach; ?>
<?php endif; ?>

Expand Down

0 comments on commit 2401e3d

Please sign in to comment.