Commit 745a298c authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #61463 replace popup with flash messenger in hold cancelation process.

parent 9e563325
Pipeline #2191 passed with stage
in 18 minutes and 17 seconds
- ticket #61463 : Compte lecteur : la page des réservations se recharge après l'annulation d'une d'entre elles.
\ No newline at end of file
......@@ -436,7 +436,8 @@ class AbonneController extends ZendAfi_Controller_Action {
? $result['erreur']
: $this->_('Votre réservation du document %s a bien été supprimée.', $title);
return $this->_renderExtendPopup($this->_('Suppression de la réservation'), $message);
$this->_helper->notify($message);
$this->_redirectToReferer();
}
if ($delete = $this->_getParam('consultation_id_delete'))
......
......@@ -701,6 +701,18 @@ class Scenario_AbonneMultiCardsAccountOfEwokCancelReservationsActionTest
public function shouldCallCancelArcadiaHoldOfLuke() {
$this->assertTrue($this->_comm->methodHasBeenCalledWithParams('supprimerReservation', [Class_Users::find(2), 78]));
}
/** @test */
public function shouldRedirect() {
$this->assertRedirect();
}
/** @test */
public function flashMessengerShouldContainsHoldDeleted() {
$this->assertFlashMessengerContentContains('Votre réservation du document Arcadia a bien été supprimée.');
}
}
......
Markdown is supported
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