cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject git commit: updated refs/heads/master to 45c45c2
Date Mon, 12 Aug 2013 17:59:07 GMT
Updated Branches:
  refs/heads/master 9e9e00078 -> 45c45c2e2


CLOUDSTACK-4219: Autoscale UI: Fix for missing form data

Fix form data not being passed when editing autoscale policy on
existing LB rules.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/45c45c2e
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/45c45c2e
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/45c45c2e

Branch: refs/heads/master
Commit: 45c45c2e2ff8ef06a6bdd6ee1ef667e3e96872eb
Parents: 9e9e000
Author: Brian Federle <brian.federle@citrix.com>
Authored: Mon Aug 12 10:58:24 2013 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Mon Aug 12 10:58:58 2013 -0700

----------------------------------------------------------------------
 ui/scripts/ui-custom/autoscaler.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/45c45c2e/ui/scripts/ui-custom/autoscaler.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/autoscaler.js b/ui/scripts/ui-custom/autoscaler.js
index 6a36b88..0aa6c77 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;


Mime
View raw message