From 54d513129aed9339756e43c7001f84aa387be405 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 25 Apr 2023 09:11:47 +0800 Subject: [PATCH] * fix bug #34599. --- module/task/control.php | 2 +- module/task/view/view.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/task/control.php b/module/task/control.php index 43b52f9852..a7f5866c32 100755 --- a/module/task/control.php +++ b/module/task/control.php @@ -983,7 +983,7 @@ class task extends control $story = $this->story->getById($task->story, $task->storyVersion); $task->storySpec = empty($story) ? '' : $this->loadModel('file')->setImgSize($story->spec); $task->storyVerify = empty($story) ? '' : $this->loadModel('file')->setImgSize($story->verify); - $task->storyFiles = $this->loadModel('file')->getByObject('story', $task->story); + $task->storyFiles = $story->files; } if($task->team) $this->lang->task->assign = $this->lang->task->transfer; diff --git a/module/task/view/view.html.php b/module/task/view/view.html.php index 88b85c75c8..ba5b062394 100644 --- a/module/task/view/view.html.php +++ b/module/task/view/view.html.php @@ -74,7 +74,7 @@
storySpec) || !empty($task->storyFiles)) ? $task->storySpec : "
" . $lang->noData . '
';?>
- fetch('file', 'printFiles', array('files' => $task->storyFiles, 'fieldset' => 'false'));?> + fetch('file', 'printFiles', array('files' => $task->storyFiles, 'fieldset' => 'false', 'object' => $task, 'method' => 'view', 'showDelete' => false));?>
task->storyVerify;?>