* finish task #1662.
This commit is contained in:
@@ -238,6 +238,7 @@ class taskModel extends model
|
||||
{
|
||||
$oldTask = $this->getById($taskID);
|
||||
|
||||
$task = new stdclass();
|
||||
$task->name = htmlspecialchars($this->post->names[$taskID]);
|
||||
$task->module = isset($this->post->modules[$taskID]) ? $this->post->modules[$taskID] : 0;
|
||||
$task->type = $this->post->types[$taskID];
|
||||
@@ -438,6 +439,7 @@ class taskModel extends model
|
||||
{
|
||||
if(!$record->consumed[$id]) die(js::alert($this->lang->task->error->consumedThisTime));
|
||||
if($record->left[$id] === '') die(js::alert($this->lang->task->error->left));
|
||||
$estimates[$id] = new stdclass();
|
||||
$estimates[$id]->date = $record->dates[$id];
|
||||
$estimates[$id]->task = $taskID;
|
||||
$estimates[$id]->consumed = $record->consumed[$id];
|
||||
|
||||
Reference in New Issue
Block a user