Skip to content

Commit

Permalink
Merge pull request #7 from umpirsky/fix/settings-controlelr
Browse files Browse the repository at this point in the history
Add redirection
  • Loading branch information
Paweł Jędrzejewski committed Jun 18, 2013
2 parents f50ffc6 + d073fb2 commit d735c1d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public function updateAction(Request $request, $namespace)

$message = $this->getTranslator()->trans('sylius.settings.update', array(), 'flashes');
$this->get('session')->getFlashBag()->add('success', $message);

return $this->redirect($request->headers->get('referer'));
}

$template = $request->attributes->get('template');
Expand Down

0 comments on commit d735c1d

Please sign in to comment.