* adjust for web page.

This commit is contained in:
wangyidong
2021-06-11 16:51:28 +08:00
parent 3f7fdecfc4
commit 4d5bacb823
10 changed files with 68 additions and 9 deletions
+2 -2
View File
@@ -2436,10 +2436,10 @@ class taskModel extends model
if(!empty($task->storyStatus) and $task->storyStatus == 'active' and $task->latestStoryVersion > $task->storyVersion) $task->needConfirm = true;
/* Set product type for task. */
if(isset($task->product))
if(!empty($task->product))
{
$product = $this->loadModel('product')->getById($task->product);
$task->productType = $product->type;
if($product) $task->productType = $product->type;
}
/* Set closed realname. */