"save and close" button had now effect. Fix #185

This commit is contained in:
Manuel Raynaud
2014-01-20 14:52:44 +01:00
parent a548e1c5b0
commit 2bd23777ca
2 changed files with 9 additions and 1 deletions

View File

@@ -85,7 +85,12 @@ class ConfigStoreController extends BaseAdminController
$this->adminLogAppend(AdminResources::STORE, AccessManager::UPDATE, "Store configuration changed");
$this->redirectToRoute('admin.configuration.store.default');
if ($this->getRequest()->get('save_mode') == 'stay') {
$this->redirectToRoute('admin.configuration.store.default');
}
// Redirect to the success URL
$this->redirect($configStoreForm->getSuccessUrl());
} catch (\Exception $ex) {
$error_msg = $ex->getMessage();