summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/global.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/global.js b/js/global.js
index d6e11e9b1..b62d7b9a7 100644
--- a/js/global.js
+++ b/js/global.js
@@ -123,7 +123,9 @@ function set_language( value ) {
// This basically duplicates Bugzilla::Util::display_value for code that
// can't go through the template and has to be in JS.
function display_value(field, value) {
- var translated = BUGZILLA.value_descs[field][value];
+ var field_trans = BUGZILLA.value_descs[field];
+ if (!field_trans) return value;
+ var translated = field_trans[value];
if (translated) return translated;
return value;
}