* adjust for check custom pri.

This commit is contained in:
wangyidong
2018-01-30 09:57:56 +08:00
parent b557f3896d
commit 95db27aa7b
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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'>
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;