In bug 29519 we split out the returns claim resolution modal and form so they could be re-used on the check-in screen. However, I missed something. When resolving a claim from the details or checkout screens the claims table should be refreshed. Currently, we are calling an undefined function and this leads to noise in the console and the table not refreshing as it should.
Created attachment 136976 [details] [review] Bug 31085: Reload return claims table on resolve This is another fix for a bug in return claims. We now test for the initialised datatable and call an ajax reload directly on it if we find one instead of calling a undefined function (the function is out of scope here). NOTE: Taken as a whole commit follow-up on bug 28854 where the issue was initially identified Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Created attachment 137024 [details] [review] Bug 31085: Reload return claims table on resolve This is another fix for a bug in return claims. We now test for the initialised datatable and call an ajax reload directly on it if we find one instead of calling a undefined function (the function is out of scope here). NOTE: Taken as a whole commit follow-up on bug 28854 where the issue was initially identified Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Pushed to master for 22.11. Nice work everyone, thanks!
Backported to 22.05.x for 22.05.04
applied to 21.11.x for 21.11.x
Not backported to oldoldstable (21.05.x). Feel free to ask if it's needed. Nothing to document, marking resolved.