From 45c45c2e2ff8ef06a6bdd6ee1ef667e3e96872eb Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Mon, 12 Aug 2013 10:58:24 -0700 Subject: [PATCH] CLOUDSTACK-4219: Autoscale UI: Fix for missing form data Fix form data not being passed when editing autoscale policy on existing LB rules. --- ui/scripts/ui-custom/autoscaler.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/scripts/ui-custom/autoscaler.js b/ui/scripts/ui-custom/autoscaler.js index 6a36b885b63..0aa6c774d9d 100644 --- a/ui/scripts/ui-custom/autoscaler.js +++ b/ui/scripts/ui-custom/autoscaler.js @@ -357,6 +357,9 @@ click: function() { var data = cloudStack.serializeForm($('.ui-dialog .autoscaler form')); + // Fix for missing formData, when editing existing rules; + if (!formData) formData = data; + // Pass VPC data if (formData.tier) { data.tier = formData.tier;