Browse Source

fix status listing

feature/symfony6.1
Charly 1 year ago
parent
commit
5cd287c095
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      Controller/AbstractAdminController.php

+ 4
- 1
Controller/AbstractAdminController.php View File

@@ -452,7 +452,10 @@ abstract class AbstractAdminController extends EaAbstractCrudController

public function edit(AdminContext $context)
{
$context->getRequest()->setMethod('PATCH');
//Pour l'edit du status dans le listing
if($context->getRequest()->isXmlHttpRequest()){
$context->getRequest()->setMethod('PATCH');
}
$response = parent::edit($context);

// on vide le flash bag si édition en ajax (notification déjà affichée en Javascript)

Loading…
Cancel
Save