Skip to content
Snippets Groups Projects
Commit 0a77455d authored by llaffont's avatar llaffont
Browse files

Lorsqu'on ajoute une notice à un panier, affiche le lien pour retourner à la notice

parent b9687da5
Branches
Tags
No related merge requests found
......@@ -123,7 +123,7 @@ function indexAction() {
$this->_helper->notify($this->_('Notice "%s" ajoutée au panier "%s"',
$notice->getTitrePrincipal(),
$panier->getLibelle()));
$this->_redirect('opac/panier/index/id_panier/'.$panier->getId());
$this->_redirect('opac/panier/index/id_panier/'.$panier->getId().'/id_notice/'.$notice->getId());
return;
}
......
......@@ -377,7 +377,7 @@ class PanierControllerAjoutNoticeBlackSadToUndefinedPanierTest extends PanierCon
/** @test */
public function responseShouldRedirectToIndex() {
$this->assertRedirectTo('/opac/panier/index/id_panier/18');
$this->assertRedirectTo('/opac/panier/index/id_panier/18/id_notice/12');
}
......@@ -417,7 +417,7 @@ class PanierControllerAjoutNoticeBlackSadToPanierMesRomansTest extends PanierCon
/** @test */
public function responseShouldRedirectToIndex() {
$this->assertRedirectTo('/opac/panier/index/id_panier/15');
$this->assertRedirectTo('/opac/panier/index/id_panier/15/id_notice/12');
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment