Commit 572cae8f authored by Jean-Paul Saman's avatar Jean-Paul Saman

Do not allow timesheets to be edited after they are created.

parent 74308e89
......@@ -186,7 +186,7 @@ if (intval($obj->timesheet_worked)) {
echo '<td align="right" nowrap="nowarp">' . $AppUI->_('Period') . ':&nbsp;</td>';
echo '<td width="100%">';
if ( ($canEdit) && ($status < 1) ) {
if ( ($canEdit) && ($status < 1) && ($timesheet_id == 0) ) {
$newdate = new CDate();
$newdate->setDate($obj->timesheet_period,DATE_FORMAT_UNIXTIME);
$newdate->setMonth(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment