Skip to content
Snippets Groups Projects
Commit c33a86ec authored by pbarroca's avatar pbarroca
Browse files

Correction init variable + dépendance session

parent 7b82cd2f
Branches
Tags
No related merge requests found
......@@ -64,6 +64,9 @@ class ZendAfi_View_Helper_Telephone_ListeNotices extends ZendAfi_View_Helper_Bas
$html='<div class="liste">';
$html.='<ul>';
foreach($data as $notice) {
$notice = array_merge(array('auteur_principal' => ''),
$notice);
if (!$titre = $notice['T']) $titre = $notice['titre_principal'];
if (!$auteur = $notice['A']) $auteur = $notice['auteur_principal'];
......
......@@ -91,6 +91,8 @@ class Telephone_RechercheControllerSimpleOneInexistingWordActionTest extends Tel
class Telephone_RechercheControllerSimpleByPertinenceActionTest extends TelephoneAbstractControllerTestCase {
public function setUp() {
parent::setUp();
if (isset($_SESSION['recherche']))
unset($_SESSION['recherche']);
$this->postDispatch('/telephone/recherche/simple', array('expressionRecherche' => 'pomme',
'pertinence' => 1));
}
......
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