Fixed issue #1288
This commit is contained in:
parent
d5bbc0230d
commit
2c928ea25c
|
|
@ -175,7 +175,9 @@ class CartRuleController extends Controller
|
|||
// unset labels
|
||||
unset($data['label']);
|
||||
|
||||
$attribute_conditions = json_decode($attribute_conditions);
|
||||
while (gettype($attribute_conditions) == 'string') {
|
||||
$attribute_conditions = json_decode($attribute_conditions);
|
||||
}
|
||||
|
||||
if (! isset($attribute_conditions) || ! (count($attribute_conditions->categories) || count($attribute_conditions->attributes))) {
|
||||
$data['uses_attribute_conditions'] = 0;
|
||||
|
|
@ -405,6 +407,10 @@ class CartRuleController extends Controller
|
|||
// prepare actions from data for json action
|
||||
$attribute_conditions = json_decode($attribute_conditions);
|
||||
|
||||
while (gettype($attribute_conditions) == 'string') {
|
||||
$attribute_conditions = json_decode($attribute_conditions);
|
||||
}
|
||||
|
||||
if (! isset($attribute_conditions) || ! (count($attribute_conditions->categories) || count($attribute_conditions->attributes))) {
|
||||
$data['uses_attribute_conditions'] = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ Vue.component("image-slider", require("./components/image-slider.vue"));
|
|||
Vue.component("vue-slider", require("vue-slider-component"));
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
const app = new Vue({
|
||||
el: "#app",
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue