* Modify the code judgment logic.

This commit is contained in:
tianshujie
2022-03-23 11:23:45 +08:00
parent 7386bc503a
commit 890c669631
+1 -1
View File
@@ -462,7 +462,7 @@ class actionModel extends model
}
$action->extra = trim(trim($action->extra), ',');
}
elseif($action->objectType != 'feedback' and ($actionName == 'totask' or $actionName == 'linkchildtask' or $actionName == 'unlinkchildrentask' or $actionName == 'linkparenttask' or $actionName == 'unlinkparenttask' or $actionName == 'deletechildrentask'))
elseif($action->objectType != 'feedback' and (strpos('totask,linkchildtask,unlinkchildrentask,linkparenttask,unlinkparenttask,deletechildrentask', $actionName) !== false))
{
$name = $this->dao->select('name')->from(TABLE_TASK)->where('id')->eq($action->extra)->fetch('name');
if($name) $action->extra = common::hasPriv('task', 'view') ? html::a(helper::createLink('task', 'view', "taskID=$action->extra"), "#$action->extra " . $name) : "#$action->extra " . $name;