fix default successUrl on addArticle action

This commit is contained in:
Manuel Raynaud
2013-08-06 16:31:39 +02:00
parent 75929e1d4f
commit b0c3112d71

View File

@@ -103,7 +103,7 @@ class Cart implements EventSubscriberInterface
->save();
;
Redirect::exec($cartAdd->getSuccessUrl());
Redirect::exec($cartAdd->getSuccessUrl($request->getUriAddingParameters(array("addCart" => 1))));
} catch (PropelException $e) {
\Thelia\Log\Tlog::getInstance()->error(sptinf("error on adding item to cart with message : %s", $e->getMessage()));
$message = "Impossible to add this article to your cart, please try again";