Skip to content

Commit

Permalink
Ensure optimizer is properly loaded on save if already existing.
Browse files Browse the repository at this point in the history
  • Loading branch information
romainruaud committed Sep 12, 2018
1 parent 4db3ffe commit 1f538ee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Smile\ElasticsuiteCatalogOptimizer\Controller\Adminhtml\Optimizer;

use Smile\ElasticsuiteCatalogOptimizer\Api\Data\OptimizerInterface;
use Smile\ElasticsuiteCatalogOptimizer\Controller\Adminhtml\AbstractOptimizer as OptimizerController;

/**
Expand All @@ -36,7 +37,7 @@ public function execute()
$redirectBack = $this->getRequest()->getParam('back', false);

if ($data) {
$identifier = $this->getRequest()->getParam('id');
$identifier = $this->getRequest()->getParam(OptimizerInterface::OPTIMIZER_ID);
$model = $this->optimizerFactory->create();

if ($identifier) {
Expand Down

0 comments on commit 1f538ee

Please sign in to comment.