Catalogrule form variables for json data encode and decode are now normalized

This commit is contained in:
Prashant Singh 2019-09-10 14:54:47 +05:30
parent b4872b5c21
commit c3b54c389a
2 changed files with 4 additions and 11 deletions

View File

@ -223,23 +223,18 @@
starts_from: null,
per_customer: 0,
status: 1,
use_coupon: null,
auto_generation: false,
usage_limit: 0,
action_type: null,
apply: null,
apply_amt: false,
apply_prct: false,
apply_to_shipping: 0,
disc_amount: null,
end_other_rules: 0,
all_conditions: [],
all_attributes: {
'categories' : null,
'attributes' : null
'categories' : [],
'attributes' : []
},
criteria: 'cart',

View File

@ -375,12 +375,10 @@
}
this.all_attributes.attributes = this.attribute_values;
this.all_conditions = JSON.stringify(this.all_attributes);
} else {
this.all_conditions = null;
}
this.all_conditions = JSON.stringify(this.all_attributes);
// this.all_conditions = JSON.stringify(this.conditions_list);
// if (this.conditions_list.length != 0) {