From ad6fdd08dc4e653d2bc6296116b9e26231857f5b Mon Sep 17 00:00:00 2001 From: z Date: Mon, 10 Aug 2020 11:12:04 +0800 Subject: [PATCH] * fix bug and adjust code. --- module/project/view/task.html.php | 6 +++--- module/repo/control.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/project/view/task.html.php b/module/project/view/task.html.php index 3454abe0aa..293e613e39 100644 --- a/module/project/view/task.html.php +++ b/module/project/view/task.html.php @@ -143,13 +143,13 @@ js::set('foldAll', $lang->project->treeLevel['root']); $link = $this->createLink('task', 'batchCreate', "project=$projectID" . (isset($moduleID) ? "&storyID=&moduleID=$moduleID" : '')); if(common::hasPriv('task', 'batchCreate', $checkObject)) echo html::a($link, " {$lang->task->batchCreate}", '', "class='btn btn btn-secondary'"); - $link = $this->createLink('task', 'create', "project=$projectID" . (isset($moduleID) ? "&storyID=0&moduleID=$moduleID" : "&storyID=0&moduleID=''")); + $link = $this->createLink('task', 'create', "project=$projectID" . (isset($moduleID) ? "&storyID=0&moduleID=$moduleID" : "")); if(common::hasPriv('task', 'create', $checkObject)) echo html::a($link, " {$lang->task->create}", '', "class='btn btn-primary'"); ?> "; - $link = $this->createLink('task', 'create', "project=$projectID" . (isset($moduleID) ? "&storyID=0&moduleID=$moduleID" : "&storyID=0&moduleID=''")); + $link = $this->createLink('task', 'create', "project=$projectID" . (isset($moduleID) ? "&storyID=0&moduleID=$moduleID" : "")); if(common::hasPriv('task', 'create', $checkObject)) echo html::a($link, " {$lang->task->create} ", '', "class='btn btn-primary'"); ?>