From fcc6595d679c5679c765da742f20892a92424851 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Fri, 1 Apr 2011 00:40:43 +0200 Subject: [PATCH] Fixes bug #529: Adding image when none is selected. The mandatory_filter check takes now into account the value of fields of type "select", so it complains if a mandatory select does not have a value. --- src/sunstone/public/js/plugins/vms-tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sunstone/public/js/plugins/vms-tab.js b/src/sunstone/public/js/plugins/vms-tab.js index 525f65b02c..35220481bc 100644 --- a/src/sunstone/public/js/plugins/vms-tab.js +++ b/src/sunstone/public/js/plugins/vms-tab.js @@ -1098,7 +1098,7 @@ function setupCreateVMDialog(){ var man_items = "."+man_class; //find enabled mandatory items in this context - man_items = $(man_items+' input:visible',context); + man_items = $(man_items+' input:visible, '+man_items+' select:visible',context); var r = true; //we fail it the item is enabled and has no value