summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-12-15 16:17:29 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2011-12-15 16:17:29 +0100
commitc1b82081c90926e701c4c9b2dc8ad65163663b42 (patch)
tree53613fc61fa7317c57817fe40783b2ee10465cbe /js
parenta6aa75fc6f96527f01e8b4f0da414d9fa8ad8ce1 (diff)
downloadbugzilla-c1b82081c90926e701c4c9b2dc8ad65163663b42.tar.gz
bugzilla-c1b82081c90926e701c4c9b2dc8ad65163663b42.tar.xz
Bug 707428: Custom field values whose visibility depends on another field value do not remain selected after editing a bug
r=wicked a=LpSolit
Diffstat (limited to 'js')
-rw-r--r--js/field.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/field.js b/js/field.js
index 1a3bc3efd..7cdb50435 100644
--- a/js/field.js
+++ b/js/field.js
@@ -545,7 +545,7 @@ function handleValControllerChange(e, args) {
YAHOO.util.Dom.removeClass(item, 'bz_hidden_option');
item.disabled = false;
}
- else if (!item.disabled) {
+ else if (!item.disabled && controller_item && !controller_item.selected) {
YAHOO.util.Dom.addClass(item, 'bz_hidden_option');
if (item.selected) {
item.selected = false;