summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2011-02-14 21:03:48 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2011-02-14 21:03:48 +0100
commitf843497fb2836d42712a6bd66e08c3bd9f49dc2c (patch)
treeaa1ab2d02a5d9088c7e8f8a423a1317cc2e41126 /js
parenta4ae80a43078cb33f759863c6f436619290137c3 (diff)
downloadbugzilla-f843497fb2836d42712a6bd66e08c3bd9f49dc2c.tar.gz
bugzilla-f843497fb2836d42712a6bd66e08c3bd9f49dc2c.tar.xz
Bug 609538: Make the JSON-RPC interface support UTF-8 when a recent version
of LWP is installed r=dkl, a=mkanat
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;
}