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'");?>