This commit is contained in:
tanghucheng
2022-03-30 15:16:52 +08:00
parent f1449d3b6b
commit 19e6390ed7
2 changed files with 4 additions and 5 deletions
+1 -4
View File
@@ -144,6 +144,7 @@ body {margin-bottom: 25px;}
<?php
$checkObject = new stdclass();
$checkObject->execution = $executionID;
$taskCreateLink = $this->createLink('task', 'create', "executionID=$executionID" . (isset($moduleID) ? "&storyID=0&moduleID=$moduleID" : ""));
?>
<?php if(!common::checkNotCN()):?>
<?php if($canBeChanged and (common::hasPriv('task', 'batchCreate', $checkObject) or common::hasPriv('task', 'create', $checkObject))):?>
@@ -154,10 +155,6 @@ body {margin-bottom: 25px;}
$wizardParams = helper::safe64Encode("executionID=$executionID" . (isset($moduleID) ? "&storyID=0&moduleID=$moduleID" : ""));
$taskCreateLink = $this->createLink('tutorial', 'wizard', "module=task&method=create&params=$wizardParams");
}
else
{
$taskCreateLink = $this->createLink('task', 'create', "executionID=$executionID" . (isset($moduleID) ? "&storyID=0&moduleID=$moduleID" : ""));
}
echo html::a($taskCreateLink, "<i class='icon icon-plus'></i> {$lang->task->create}", '', "class='btn btn-primary'");
?>
<button type='button' class='btn btn-primary dropdown-toggle' data-toggle='dropdown'><span class='caret'></span></button>