From 95db27aa7b4807a12f36788b7a2492e06ba40abb Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 30 Jan 2018 09:57:56 +0800 Subject: [PATCH] * adjust for check custom pri. --- module/bug/view/create.html.php | 4 ++-- module/story/view/create.html.php | 4 ++-- module/task/view/create.html.php | 2 +- module/testcase/view/create.html.php | 2 +- module/testsuite/view/createcase.html.php | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index 947148fefd..6936c712b5 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -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; diff --git a/module/story/view/create.html.php b/module/story/view/create.html.php index 0303cb03b6..eb9e3f3a9e 100644 --- a/module/story/view/create.html.php +++ b/module/story/view/create.html.php @@ -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; } } ?> - + story->priList, $pri, "class='form-control minw-80px chosen'");?>