]> 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:19:10 +0000 (16:19 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 15 Dec 2011 15:19:10 +0000 (16:19 +0100)
r=wicked a=LpSolit

js/field.js

index 0cbc2ddaf0ed5975eb5fb4b6ac3dc0d956a7568c..ce3eb0ba4913af9ff37fded9d8c11d160f92ebee 100644 (file)
@@ -526,7 +526,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;