Afform - Fix error handling even when response incorrectly indicates success
authorcolemanw <coleman@civicrm.org>
Thu, 9 Nov 2023 19:58:11 +0000 (14:58 -0500)
committercolemanw <coleman@civicrm.org>
Thu, 9 Nov 2023 19:58:11 +0000 (14:58 -0500)
commit89b98a7a09b3d9fab766c00ff5d1a8dcf1a03217
tree28d287ba24f0894aaa9562fadf2ab8e7cfc50183
parent237e8f7d786c62a23dc0d0c90d68a8b89583a163
Afform - Fix error handling even when response incorrectly indicates success

This is a weird bug, where some WP sites will force status code 200 into the response of ajax requests,
regardless of what the response code was supposed to be.

Also see https://lab.civicrm.org/extensions/stripe/-/merge_requests/232
ext/afform/core/ang/af/afForm.component.js