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

Correction url action recherche avancee + test

parent 4dc7090a
Branches
Tags
No related merge requests found
......@@ -2,10 +2,17 @@
if ($this->statut == "saisie") {
$this->openBoite($this->_current_module["preferences"]["titre"]);
?>
<form method="get" action="<?php echo $this->url(['controller'=>'recherche','action'=>'simple']); ?>" name="recherche_avancee" class="recherche_avancee">
<form method="get" action="<?php echo $this->url(['controller'=>'recherche','action'=>'simple'], null, true); ?>" name="recherche_avancee" class="recherche_avancee">
<div class="contenu">
<table style="border-collapse: collapse;">
<tr><td><?php if ($this->_current_module["preferences"]["select_bib"] == 1) echo $_SESSION["selection_bib"]["html"] ?></td></tr>
<tr>
<td>
<?php
if (isset($this->_current_module["preferences"]["select_bib"]) && ($this->_current_module["preferences"]["select_bib"] == 1))
echo $_SESSION["selection_bib"]["html"];
?>
</td>
</tr>
<tr><td>
<table style="width: 600px;">
<tr>
......@@ -163,4 +170,4 @@ if ($this->statut == "saisie") {
} else {
echo $this->render("recherche/resultatRecherche.phtml");
}
?>
\ No newline at end of file
?>
......@@ -1308,6 +1308,7 @@ class RechercheControllerAjoutNoticePanierUrlWithMurConfigTest extends Recherche
class RechercheControllerNavigationTest extends RechercheControllerNoticeTestCase {
public function setUp(){
parent::setUp();
......@@ -1387,4 +1388,20 @@ class RechercheControllerNavigationTest extends RechercheControllerNoticeTestCas
}
class RechercheControllerAvanceeTest extends RechercheControllerNoticeTestCase {
public function setUp() {
parent::setUp();
$this->dispatch('/recherche/avancee', true);
}
/** @test */
public function formActionShouldBeRechercheSimple() {
$this->assertXPath('//form[@action="/recherche/simple"]');
}
}
?>
\ No newline at end of file
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