* adjust for check custom pri.
This commit is contained in:
@@ -165,7 +165,7 @@ js::set('confirmDeleteTemplate', $lang->bug->confirmDeleteTemplate);
|
||||
$hasCustomSeverity = false;
|
||||
foreach($lang->bug->severityList as $severityKey => $severityValue)
|
||||
{
|
||||
if($severityKey != $severityValue)
|
||||
if($severityKey != $severityValue or strlen($severityKey) != strlen($severityValue))
|
||||
{
|
||||
$hasCustomSeverity = true;
|
||||
break;
|
||||
@@ -190,7 +190,7 @@ js::set('confirmDeleteTemplate', $lang->bug->confirmDeleteTemplate);
|
||||
$hasCustomPri = false;
|
||||
foreach($lang->bug->priList as $priKey => $priValue)
|
||||
{
|
||||
if($priKey != $priValue)
|
||||
if($priKey != $priValue or strlen($priKey) != strlen($priValue))
|
||||
{
|
||||
$hasCustomPri = true;
|
||||
break;
|
||||
|
||||
@@ -113,14 +113,14 @@
|
||||
$hasCustomPri = false;
|
||||
foreach($lang->story->priList as $priKey => $priValue)
|
||||
{
|
||||
if($priKey != $priValue)
|
||||
if($priKey != $priValue or strlen($priKey) != strlen($priValue))
|
||||
{
|
||||
$hasCustomPri = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php if(!$hasCustomPri):?>
|
||||
<?php if($hasCustomPri):?>
|
||||
<?php echo html::select('pri', (array)$lang->story->priList, $pri, "class='form-control minw-80px chosen'");?>
|
||||
<?php else: ?>
|
||||
<div class='input-group-btn dropdown-pris' data-set='0,1,2,3,4'>
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
$hasCustomPri = false;
|
||||
foreach($lang->task->priList as $priKey => $priValue)
|
||||
{
|
||||
if($priKey != $priValue)
|
||||
if($priKey != $priValue or strlen($priKey) != strlen($priValue))
|
||||
{
|
||||
$hasCustomPri = true;
|
||||
break;
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
$hasCustomPri = false;
|
||||
foreach($lang->testcase->priList as $priKey => $priValue)
|
||||
{
|
||||
if($priKey != $priValue)
|
||||
if($priKey != $priValue or strlen($priKey) != strlen($priValue))
|
||||
{
|
||||
$hasCustomPri = true;
|
||||
break;
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
$hasCustomPri = false;
|
||||
foreach($lang->testcase->priList as $priKey => $priValue)
|
||||
{
|
||||
if($priKey != $priValue)
|
||||
if($priKey != $priValue or strlen($priKey) != strlen($priValue))
|
||||
{
|
||||
$hasCustomPri = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user