|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function edit(AdminContext $context) |
|
|
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); |
|
|
$response = parent::edit($context); |
|
|
|
|
|
|
|
|
// on vide le flash bag si édition en ajax (notification déjà affichée en Javascript) |
|
|
// on vide le flash bag si édition en ajax (notification déjà affichée en Javascript) |