]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 707428: Custom field values whose visibility depends on another field value do...
authorFrédéric Buclin <LpSolit@gmail.com>
Thu, 15 Dec 2011 15:17:29 +0000 (16:17 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 15 Dec 2011 15:17:29 +0000 (16:17 +0100)
r=wicked a=LpSolit

js/field.js

index 1a3bc3efd4fdd56bbdd59be55e886200c3206868..7cdb504354464b85d7bd168c1e8474152df66072 100644 (file)
@@ -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;