Preorder fix attribute statusflag
This commit is contained in:
@@ -502,6 +502,28 @@ $pagination_entity_name = "Vorbestellungen";
|
||||
"json"
|
||||
);
|
||||
|
||||
// if attribute is inhouse_cabling_supplied and is checked or unchecked send an api request
|
||||
// api
|
||||
// do: setStatusFlag, preorder_id, flag_id: 1, value (0 or 1)
|
||||
|
||||
if (attrib == "inhouse_cabling_supplied") {
|
||||
var flag_id = 1;
|
||||
$.post("<?=self::getUrl("Preorder", "Api")?>", {
|
||||
do: "setStatusFlag",
|
||||
preorder_id: preorder_id,
|
||||
flag_id: flag_id,
|
||||
value: value
|
||||
},
|
||||
function(success) {
|
||||
if(success.status == "OK") {
|
||||
attributeSuccess(success.result);
|
||||
} else {
|
||||
attributeError(success.result.id, success.result.attribute);
|
||||
}
|
||||
},
|
||||
"json"
|
||||
);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user