From 50eea70d0104ac328bb73a04ef06c71f2015a33d Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Fri, 22 Mar 2019 15:23:56 +0800 Subject: [PATCH] * Fix project task button. --- module/project/view/task.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/project/view/task.html.php b/module/project/view/task.html.php index 40de7961c6..7a5ce4b66a 100644 --- a/module/project/view/task.html.php +++ b/module/project/view/task.html.php @@ -149,7 +149,7 @@ js::set('browseType', $browseType); project = $projectID; - if(!isset($this->config->isINT) or !$this->config->isINT) + if(!isset($this->config->isINT) or !$this->config->isINT or $this->app->getClientLang() != 'en') { $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'"); @@ -158,7 +158,7 @@ js::set('browseType', $browseType); $link = $this->createLink('task', 'create', "project=$projectID" . (isset($moduleID) ? "&storyID=&moduleID=$moduleID" : '')); if(common::hasPriv('task', 'create', $checkObject)) echo html::a($link, " {$lang->task->create}", '', "class='btn btn-primary'"); ?> - config->isINT) and $this->config->isINT):?> + config->isINT) and $this->config->isINT and $this->app->getClientLang() == 'en'):?> createLink('task', 'batchCreate', "project=$projectID" . (isset($moduleID) ? "&storyID=&moduleID=$moduleID" : ''));?>