Hello!!! I created buttons that change the status of the Case entity. Most of the code is in the detail.js file in the directory ..... / client / modules / casebuttons / src / views / case. Changing the status produces the following code:
Everything works well, but sometimes even too (very rarely): I change the status in one “Case” - the status changes to identical in a few more “Case”, which have nothing to do with the first. How to get rid of this error? There is a suspicion that this is somehow connected with this.model.collection.
PHP Code:
this.model.save({
status: param
}).success(function () {
this.notify(false);
this.model.trigger('after:save');
}.bind(this));
Comment