* Fix project task button.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user