-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error-response when running request with XHR (#5710)
* added error-response when running request with XHR * moved code into separate response * added JsonResponse type to `renderJson` and `handleXmlHttpRequestErrorResponse` * !squash fixing cs * fixing CRUDControllerTest::testEditActionAjaxError * fixing CRUDControllerTest::testCreateActionAjaxError * !squash reverted return-type of renderJson * !squash removed empty-array * !squash reverted renderJson return type * extracted success response to handleXmlHttpRequestSuccessResponse * added Request to handleXmlHttpRequestSuccessResponse and handleXmlHttpRequestErrorResponse * added deprecation notices * added tests * fixed flintci * fixed flintci
- Loading branch information
1 parent
470eac1
commit cc0fdef
Showing
2 changed files
with
180 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters