Merge branch 'app_zry' into 'master'

* Fix bug 21591.

See merge request easycorp/zentaopms!2828
This commit is contained in:
朱金勇
2022-04-08 06:05:36 +00:00
3 changed files with 4 additions and 5 deletions
+1 -4
View File
@@ -465,10 +465,7 @@ class task extends control
$changes = $this->task->update($taskID);
if(dao::isError()) return print(js::error(dao::getError()));
$files = $this->loadModel('file')->saveUpload('task', $taskID);
if(empty($files) and $this->post->uid != '')
{
$files = $this->file->getPairs($_SESSION['album']['used'][$this->post->uid]);
}
if(empty($files) and $this->post->uid != '') $files = $this->file->getPairs($_SESSION['album']['used'][$this->post->uid]);
}
$task = $this->task->getById($taskID);