* Fix bug #2296.
This commit is contained in:
@@ -1053,7 +1053,7 @@ class taskModel extends model
|
||||
$earliestTime = $record->dates[$id];
|
||||
}
|
||||
|
||||
if($record->dates[$id])
|
||||
if(!empty($record->work[$id]) or !empty($record->consumed[$id]))
|
||||
{
|
||||
if(!$record->consumed[$id]) die(js::alert($this->lang->task->error->consumedThisTime));
|
||||
if($record->left[$id] === '') die(js::alert($this->lang->task->error->left));
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
<?php for($i = 1; $i <= 3; $i++):?>
|
||||
<tr class="text-center">
|
||||
<td><?php echo $i . html::hidden("id[$i]", $i);?></td>
|
||||
<td><?php echo html::input("dates[$i]", '', "class='form-control text-center form-date'");?></td>
|
||||
<td><?php echo html::input("dates[$i]", helper::today(), "class='form-control text-center form-date'");?></td>
|
||||
<td><?php echo html::input("consumed[$i]", '', "class='form-control text-center' autocomplete='off'");?></td>
|
||||
<td><?php echo html::input("left[$i]", '', "class='form-control text-center left' autocomplete='off'");?></td>
|
||||
<td class="text-left"><?php echo html::textarea("work[$i]", '', "class='form-control' style='height:50px;'");?></td>
|
||||
|
||||
Reference in New Issue
Block a user