diff --git a/module/block/view/bugblock.html.php b/module/block/view/bugblock.html.php index a7e34a445d..330535e18b 100644 --- a/module/block/view/bugblock.html.php +++ b/module/block/view/bugblock.html.php @@ -34,6 +34,17 @@ bug->statusAB;?> + bug->severityList as $severityKey => $severityValue) + { + if(!empty($severityKey) and (string)$severityKey != (string)$severityValue) + { + $hasCustomSeverity = true; + break; + } + } + ?> bug->priList, $bug->pri)?> + + ' title='bug->severityList, $bug->severity);?>' data-severity='severity;?>'>bug->severityList, $bug->severity, $bug->severity);?> + severity;?> + title?> diff --git a/module/bug/model.php b/module/bug/model.php index 11cef46ad5..cf0e07e8a5 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -2442,6 +2442,17 @@ class bugModel extends model $canBatchAction = $canBatchEdit or $canBatchConfirm or $canBatchClose or $canBatchActivate or $canBatchChangeBranch or $canBatchChangeModule or $canBatchResolve or $canBatchAssignTo; $canView = common::hasPriv('bug', 'view'); + + $hasCustomSeverity = false; + foreach($this->lang->bug->severityList as $severityKey => $severityValue) + { + if(!empty($severityKey) and (string)$severityKey != (string)$severityValue) + { + $hasCustomSeverity = true; + break; + } + } + $bugLink = inlink('view', "bugID=$bug->id"); $account = $this->app->user->account; $id = $col->id; @@ -2482,7 +2493,14 @@ class bugModel extends model } break; case 'severity': - echo ""; + if($hasCustomSeverity) + { + echo "" . zget($this->lang->bug->severityList, $bug->severity) . ""; + } + else + { + echo ""; + } break; case 'pri': echo ""; diff --git a/module/bug/view/view.html.php b/module/bug/view/view.html.php index f379b42260..a9f749418d 100644 --- a/module/bug/view/view.html.php +++ b/module/bug/view/view.html.php @@ -142,8 +142,25 @@ bug->typeList[$bug->type])) echo $lang->bug->typeList[$bug->type]; else echo $bug->type;?> + bug->severityList as $severityKey => $severityValue) + { + if(!empty($severityKey) and (string)$severityKey != (string)$severityValue) + { + $hasCustomSeverity = true; + break; + } + } + ?> bug->severity;?> - + + + bug->severityList, $bug->severity, $bug->severity);?> + + + + bug->pri;?> diff --git a/module/build/view/view.html.php b/module/build/view/view.html.php index b1f4b9f3c6..dc2aef8a36 100644 --- a/module/build/view/view.html.php +++ b/module/build/view/view.html.php @@ -247,13 +247,28 @@ tbody tr td:first-child input{display:none;} bug->resolvedDateAB);?> + bug->severityList as $severityKey => $severityValue) + { + if(!empty($severityKey) and (string)$severityKey != (string)$severityValue) + { + $hasCustomSeverity = true; + break; + } + } + ?> createLink('bug', 'view', "bugID=$bug->id", '', true);?> id);?> + + bug->severityList, $bug->severity, $bug->severity);?> + + title, '', "class='iframe' data-width='1000'");?> diff --git a/module/my/view/bug.html.php b/module/my/view/bug.html.php index 6701cf8356..3ed37fa17e 100644 --- a/module/my/view/bug.html.php +++ b/module/my/view/bug.html.php @@ -53,6 +53,17 @@ actions;?> + bug->severityList as $severityKey => $severityValue) + { + if(!empty($severityKey) and (string)$severityKey != (string)$severityValue) + { + $hasCustomSeverity = true; + break; + } + } + ?> @@ -65,7 +76,13 @@ id);?> - ' data-severity='severity;?>' title='bug->severityList, $bug->severity);?>'> + + + ' title='bug->severityList, $bug->severity);?>' data-severity='severity;?>'>bug->severityList, $bug->severity, $bug->severity);?> + + ' data-severity='severity;?>' title='bug->severityList, $bug->severity);?>'> + + pri?>' title='bug->priList, $bug->pri);?>'>bug->priList, $bug->pri)?> bug->typeList, $bug->type, '');?> createLink('bug', 'view', "bugID=$bug->id"), $bug->title, null, "style='color: $bug->color'");?> diff --git a/module/project/view/bug.html.php b/module/project/view/bug.html.php index ec6cf88535..c508ba25ad 100644 --- a/module/project/view/bug.html.php +++ b/module/project/view/bug.html.php @@ -62,6 +62,17 @@ actions;?> + bug->severityList as $severityKey => $severityValue) + { + if(!empty($severityKey) and (string)$severityKey != (string)$severityValue) + { + $hasCustomSeverity = true; + break; + } + } + ?> @@ -72,7 +83,13 @@ id);?> - ' title='bug->severityList, $bug->severity);?>' data-severity='severity;?>'> + + + ' title='bug->severityList, $bug->severity);?>' data-severity='severity;?>'>bug->severityList, $bug->severity, $bug->severity);?> + + ' title='bug->severityList, $bug->severity);?>' data-severity='severity;?>'> + + pri?>' title='bug->priList, $bug->pri, $bug->pri)?>'>bug->priList, $bug->pri, $bug->pri)?> createLink('bug', 'view', "bugID=$bug->id"), $bug->title, null, "style='color: $bug->color'");?> openedBy, $bug->openedBy);?> diff --git a/module/release/view/view.html.php b/module/release/view/view.html.php index 0d09b8689e..f36b28891c 100644 --- a/module/release/view/view.html.php +++ b/module/release/view/view.html.php @@ -235,6 +235,17 @@ actions;?> + bug->severityList as $severityKey => $severityValue) + { + if(!empty($severityKey) and (string)$severityKey != (string)$severityValue) + { + $hasCustomSeverity = true; + break; + } + } + ?> createLink('bug', 'view', "bugID=$bug->id", '', true);?> @@ -249,7 +260,11 @@ id);?> + + ' title='bug->severityList, $bug->severity);?>' data-severity='severity;?>'>bug->severityList, $bug->severity, $bug->severity);?> + + title, '', "class='preview'");?> bug->statusList, $bug->status);?>