* fix a bug, which do not update estimate, for manage member for project.

This commit is contained in:
shiyangyangwork@yahoo.cn
2012-01-10 08:21:30 +00:00
parent 1b0020ce2d
commit 9ca68d2ed6
2 changed files with 3 additions and 6 deletions
-5
View File
@@ -1015,11 +1015,6 @@ class project extends control
foreach($members as $account => $member)
{
if(!@$users[$member->account]) $member->account .= $this->lang->user->deleted;
if(isset($users[$member->account]))
{
$member->account = substr($users[$member->account], 2);
unset($users[$account]);
}
}
/* Set menu. */
+3 -1
View File
@@ -21,9 +21,11 @@
<th><?php echo $lang->team->hours;?></th>
</tr>
<?php foreach($members as $key => $member):?>
<?php $realname = substr($users[$member->account], 2);?>
<?php unset($users[$member->account]);?>
<tr>
<td><input type='text' name='accounts[]' id='account<?php echo $key;?>' value='<?php echo $member->account;?>' readonly class='text-2' /></td>
<td><input type='text' name='realnames[]' id='account<?php echo $key;?>' value='<?php echo $realname;?>' readonly class='text-2' /></td>
<td class='hidden'><input type='text' name='accounts[]' id='account<?php echo $key;?>' value='<?php echo $member->account;?>' readonly class='text-2' /></td>
<td><input type='text' name='roles[]' id='role<?php echo $key;?>' value='<?php echo $member->role;?>' class='text-2' /></td>
<td><input type='text' name='days[] ' id='days<?php echo $key;?>' value='<?php echo $member->days;?>' class='text-2' /></td>
<td>