|
From: Ulf E. <ulf...@us...> - 2005-09-09 20:22:34
|
Update of /cvsroot/phpbt/phpbt/templates/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21233/templates/default Modified Files: bughistory.html Log Message: Fix: Bughistory used to show unmasked email for the "assigned_to" field Index: bughistory.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/bughistory.html,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- bughistory.html 25 Oct 2004 12:07:04 -0000 1.6 +++ bughistory.html 9 Sep 2005 20:22:25 -0000 1.7 @@ -11,8 +11,17 @@ <tr<?php if ($i % 2) echo ' class="alt" bgcolor="#dddddd"' ?>> <td><?php echo maskemail($history[$i]['login']); ?></td> <td><?php echo $history[$i]['changed_field']; ?></td> - <td> <?php echo $history[$i]['old_value']; ?></td> - <td> <?php echo $history[$i]['new_value']; ?></td> + <td> <?php if ($history[$i]['changed_field'] == translate("Assigned To")) { + echo maskemail($history[$i]['old_value']); + } else { + echo $history[$i]['old_value']; + } ?></td> + <td> <?php if ($history[$i]['changed_field'] == translate("Assigned To")) { + echo maskemail($history[$i]['new_value']); + } else { + echo $history[$i]['new_value']; + } ?></td> + <td align="center"><?php echo date(TIME_FORMAT.' '.DATE_FORMAT, $history[$i]['created_date']); ?></td> </tr> <?php } ?> |