Updated Branches: refs/heads/4.1 07fa69cac -> 3d8e582d3
CLOUDSTACK-1138:Providing invalid values for gateway, netmask etc in the zoneWizard blocks the VLAN container to load , throwing an error Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/3d8e582d Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/3d8e582d Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/3d8e582d Branch: refs/heads/4.1 Commit: 3d8e582d382d9a9aedf3079bd49ac14fd4b7a0e6 Parents: 07fa69c Author: Brian Federle <[email protected]> Authored: Tue Feb 5 11:55:17 2013 +0530 Committer: Pranav Saxena <[email protected]> Committed: Tue Feb 5 11:55:17 2013 +0530 ---------------------------------------------------------------------- ui/scripts/ui/utils.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/3d8e582d/ui/scripts/ui/utils.js ---------------------------------------------------------------------- diff --git a/ui/scripts/ui/utils.js b/ui/scripts/ui/utils.js index 567f566..7a6fb2f 100644 --- a/ui/scripts/ui/utils.js +++ b/ui/scripts/ui/utils.js @@ -23,7 +23,7 @@ $($form.serializeArray()).each(function() { var dataItem = data[this.name]; - var value = this.value; + var value = this.value.toString(); if (options.escapeSlashes) { value = value.replace(/\//g, '__forwardSlash__'); @@ -31,9 +31,9 @@ if (!dataItem) { data[this.name] = value; - } else if (dataItem && !$(dataItem).size()) { + } else if (dataItem && !$.isArray(dataItem)) { data[this.name] = [dataItem, value]; - } else { + } else if($.isArray(dataItem)){ dataItem.push(value); } });
