Index: branches/RC/core/admin_templates/js/form_controls.js =================================================================== diff -u -N -r11854 -r11932 --- branches/RC/core/admin_templates/js/form_controls.js (.../form_controls.js) (revision 11854) +++ branches/RC/core/admin_templates/js/form_controls.js (.../form_controls.js) (revision 11932) @@ -8,9 +8,9 @@ this.Permissions = new Array (); // action groups allowed this.Messages = new Array (); // various phrase (errors, confirmations, button titles) - this.Controls = new Array (); // controls used for editing list content + this.Controls = {}; // controls used for editing list content this.Records = new Array (); // data to be submitted (needs to be parsed using formatters) - this.Errors = new Array (); // error messages in fields + this.Errors = {}; // error messages in fields this.InEditing = false; } @@ -180,7 +180,7 @@ this.setControlValue($field_name, null); } - this.Errors = new Array (); + this.Errors = {}; } MultiInputControl.prototype.CancelEditing = function() { @@ -264,7 +264,7 @@ this.ProcessXMLNode($child, $child.tagName); } else if ($child.tagName == 'errors') { - this.Errors = new Array (); + this.Errors = {}; this.ProcessXMLNode($child, $child.tagName); } } @@ -307,7 +307,7 @@ } MultiInputControl.prototype.prepareRecord = function() { - var $record = new Array (); + var $record = {}; for (var $field_name in this.Controls) { $record[$field_name] = this.getControlValue($field_name); }