Closed westerncj closed 8 years ago
I think you would have to save the before values in a temp scope variable and if you click cancel after onaftersave was run, then reset the value.
OK. That's kind of what I ended up doing. Thanks for the quick response.
OK, should this issue be closed then?
You need to close it.
We wanted to return server side errors to the client so we used
onaftersave
instead ofonbeforesave
. It works as expected for validation except that the local model is updated when you click the Cancel button. Is there a way to not update the local model if there is an error withonaftersave
?