* Modify the code judgment logic.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user