aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2011-02-14 12:03:48 -0800
committerMax Kanat-Alexander <mkanat@bugzilla.org>2011-02-14 12:03:48 -0800
commitf843497fb2836d42712a6bd66e08c3bd9f49dc2c (patch)
treeaa1ab2d02a5d9088c7e8f8a423a1317cc2e41126 /js
parentBug 603127: Make checksetup.pl require DBD::Pg 2.17.2 when using Pg 9.0 or (diff)
downloadbugzilla-f843497fb2836d42712a6bd66e08c3bd9f49dc2c.tar.gz
bugzilla-f843497fb2836d42712a6bd66e08c3bd9f49dc2c.tar.bz2
bugzilla-f843497fb2836d42712a6bd66e08c3bd9f49dc2c.zip
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;
}