Skip to content

Commit

Permalink
Import class
Browse files Browse the repository at this point in the history
  • Loading branch information
jbclaudio committed Sep 16, 2024
1 parent 596333b commit 60bebac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Controller/Adminhtml/Akeneo/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use JustBetter\AkeneoBundle\Model\Akeneo;
use Magento\Backend\App\Action;
use Magento\Backend\Model\Session;
use Magento\Backend\Model\View\Result\Redirect;
use Magento\Framework\Controller\ResultInterface;
use Magento\Framework\Exception\LocalizedException;
Expand Down Expand Up @@ -39,7 +40,7 @@ public function execute(): ResultInterface
try {
$model->save();
$this->messageManager->addSuccess(__('The Akeneo has been saved.'));
$this->_objectManager->get(\Magento\Backend\Model\Session::class)->setFormData(false);
$this->_objectManager->get(Session::class)->setFormData(false);
if ($request->getParam('back')) {
return $resultRedirect->setPath('*/*/edit', ['id' => $model->getId(), '_current' => true]);
}
Expand Down

0 comments on commit 60bebac

Please sign in to comment.