* fix for batch assign in safari.

This commit is contained in:
wangyidong
2017-10-13 09:16:31 +08:00
parent 09e803a091
commit fe7eea2227
3 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -473,6 +473,7 @@ class task extends control
$taskIDList = $this->post->taskIDList;
unset($_POST['taskIDList']);
if(!is_array($taskIDList)) die(js::locate($this->createLink('project', 'task', "projectID=$project"), 'parent'));
$taskIDList = array_unique($taskIDList);
foreach($taskIDList as $taskID)
{
$this->loadModel('action');
@@ -482,7 +483,7 @@ class task extends control
$this->action->logHistory($actionID, $changes);
$this->task->sendmail($taskID, $actionID);
}
die(js::locate($this->createLink('project', 'task', "projectID=$project"), 'parent'));
die(js::reload('parent'));
}
}
+1 -1
View File
@@ -519,7 +519,7 @@ class taskModel extends model
->cleanFloat('left')
->setDefault('lastEditedBy', $this->app->user->account)
->setDefault('lastEditedDate', $now)
->remove('comment')
->remove('comment,showModule')
->setDefault('assignedDate', $now)
->get();