File tree Expand file tree Collapse file tree 5 files changed +11
-3
lines changed
views/admin/customers/partials/list_filter/box Expand file tree Collapse file tree 5 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 9898 return false ;
9999 }
100100 $ . ajax ( {
101+ method : 'POST' ,
101102 url : '/admin/customermanagementframework/customers/new' ,
103+ headers : {
104+ 'X-Pimcore-Csrf-Token' : $newCustomerButton . data ( 'token' )
105+ } ,
102106 success : function ( data ) {
103107 var objectId = data . id ;
104108 if ( 'undefined' !== typeof window . top . pimcore ) {
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ public function downloadFinishedExportAction(Request $request): JsonResponse | R
305305 /**
306306 * Create new customer action
307307 *
308- * @Route("/new")
308+ * @Route("/new", methods={"POST"} )
309309 *
310310 * @throws ValidationException
311311 */
Original file line number Diff line number Diff line change @@ -803,7 +803,11 @@ app.SearchFilter.DateRangePicker = (function () {
803803 return false ;
804804 }
805805 $ . ajax ( {
806+ method : 'POST' ,
806807 url : '/admin/customermanagementframework/customers/new' ,
808+ headers : {
809+ 'X-Pimcore-Csrf-Token' : $newCustomerButton . data ( 'token' )
810+ } ,
807811 success : function ( data ) {
808812 var objectId = data . id ;
809813 if ( 'undefined' !== typeof window . top . pimcore ) {
You can’t perform that action at this time.
0 commit comments