As the customerController, the method performAdditionalUpdateAction is useless as long as we have an <input type="hidden" name="page" /> AND a well configured successUrl :)
This commit is contained in:
@@ -15,7 +15,6 @@ namespace Thelia\Controller\Admin;
|
|||||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||||
use Propel\Runtime\ActiveQuery\Criteria;
|
use Propel\Runtime\ActiveQuery\Criteria;
|
||||||
|
|
||||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
|
||||||
use Thelia\Core\Event\FeatureProduct\FeatureProductDeleteEvent;
|
use Thelia\Core\Event\FeatureProduct\FeatureProductDeleteEvent;
|
||||||
use Thelia\Core\Event\FeatureProduct\FeatureProductUpdateEvent;
|
use Thelia\Core\Event\FeatureProduct\FeatureProductUpdateEvent;
|
||||||
use Thelia\Core\Event\TheliaEvents;
|
use Thelia\Core\Event\TheliaEvents;
|
||||||
@@ -444,19 +443,6 @@ class ProductController extends AbstractSeoCrudController
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function performAdditionalUpdateAction($updateEvent)
|
|
||||||
{
|
|
||||||
if ($this->getRequest()->get('save_mode') != 'stay') {
|
|
||||||
|
|
||||||
$response = new RedirectResponse($this->getRoute('admin.categories.default', array(
|
|
||||||
'category_id' => $this->getCategoryId(),
|
|
||||||
'page' => $this->getRequest()->get('page', 1)
|
|
||||||
)));
|
|
||||||
|
|
||||||
return $response;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function performAdditionalUpdatePositionAction($positionEvent)
|
protected function performAdditionalUpdatePositionAction($positionEvent)
|
||||||
{
|
{
|
||||||
// Redirect to parent product list
|
// Redirect to parent product list
|
||||||
|
|||||||
Reference in New Issue
Block a user