* Fix project task button.

This commit is contained in:
Yagami
2019-03-22 15:23:56 +08:00
parent fc5a8396a1
commit 50eea70d01
+2 -2
View File
@@ -149,7 +149,7 @@ js::set('browseType', $browseType);
<?php
$checkObject = new stdclass();
$checkObject->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, "<i class='icon icon-plus'></i> {$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, "<i class='icon icon-plus'></i> {$lang->task->create}", '', "class='btn btn-primary'");
?>
<?php if(isset($this->config->isINT) and $this->config->isINT):?>
<?php if(isset($this->config->isINT) and $this->config->isINT and $this->app->getClientLang() == 'en'):?>
<?php $link = $this->createLink('task', 'batchCreate', "project=$projectID" . (isset($moduleID) ? "&storyID=&moduleID=$moduleID" : ''));?>
<div class="btn-group dropdown-hover">
<button type='button' class='btn btn-primary dropdown-toggle' data-toggle='dropdown' id='int-dropdown'> <span class='caret'></span> </button>