Merge branch 'master' of https://gitlab.zcorp.cc/easycorp/zentaopms
This commit is contained in:
@@ -526,9 +526,9 @@ class executionModel extends model
|
||||
->where('id')->eq($executionID)
|
||||
->limit(1)
|
||||
->exec();
|
||||
|
||||
|
||||
if(dao::isError()) return false;
|
||||
|
||||
|
||||
/* Get team and language item. */
|
||||
$this->loadModel('user');
|
||||
$team = $this->user->getTeamMemberPairs($executionID, 'execution');
|
||||
|
||||
@@ -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¶ms=$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>
|
||||
|
||||
@@ -26,7 +26,7 @@ $name = $lang->tree->name;
|
||||
if($viewType == 'line') $name = $lang->tree->line;
|
||||
if($viewType == 'api') $name = $lang->tree->dir;
|
||||
if($viewType == 'doc') $name = $lang->doc->catalogName;
|
||||
if($viewType == 'feedback' or $viewType == 'trainskill' or $viewType == 'trainpost') $name = $lang->tree->dir;
|
||||
if($viewType == 'feedback' or $viewType == 'trainskill' or $viewType == 'trainpost') $name = $lang->tree->cate;
|
||||
|
||||
$childTitle = $lang->tree->child;
|
||||
if(strpos($viewType, 'feedback') !== false) $childTitle = $lang->tree->subCategory;
|
||||
|
||||
Reference in New Issue
Block a user