mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4219: Autoscale UI: Fix for missing form data
Fix form data not being passed when editing autoscale policy on existing LB rules.
This commit is contained in:
parent
9e9e000780
commit
45c45c2e2f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue