Roo/form/ComboBox.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 14 Nov 2011 09:30:28 +0000 (17:30 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 14 Nov 2011 09:30:28 +0000 (17:30 +0800)
Roo/form/ComboBox.js

index 810db9e..93e176a 100644 (file)
@@ -311,9 +311,13 @@ Roo.extend(Roo.form.ComboBox, Roo.form.TriggerField, {
                 this.value !== undefined ? this.value : '';
 
             // prevent input submission
-            if (this.hiddenName == this.name) { 
-                this.el.dom.removeAttribute('name');
-            }
+            //if (this.hiddenName == this.name) { 
+            this.el.dom.removeAttribute('name');
+            this.hiddenNameField = this.el.insertSibling({tag:'input', type:'hidden', name: this.name}, 'before', true);
+            
+            
+            
+            //}
         }
         if(Roo.isGecko){
             this.el.dom.setAttribute('autocomplete', 'off');