Commit df88c8d0 authored by efalcy's avatar efalcy

hotline #103670 : kiosk : fix preferences sort display

parent da546c47
Pipeline #10128 passed with stage
in 45 minutes and 36 seconds
- ticket #103670 : Kiosque : Tri de recherche par défaut non pris en compte
\ No newline at end of file
......@@ -250,10 +250,10 @@ class ZendAfi_View_Helper_Accueil_Kiosque extends ZendAfi_View_Helper_Accueil_Ba
if (!$titre = $this->preferences['titre'])
return '';
$tris = ['0' => 'alpha_titre',
'1' => 'date_creation desc',
'2' => 'nb_visu desc',
'3' => 'annee desc'];
$tris = ['0' => Class_CriteresRecherche_Abstract::SORT_TITLE_ASC,
'1' => Class_CriteresRecherche_Abstract::SORT_NOVELTY_DESC,
'2' => Class_CriteresRecherche_Abstract::SORT_VIEWS_DESC,
'3' => Class_CriteresRecherche_Abstract::SORT_PUBLICATION_DESC];
$this->preferences['titre'] = str_replace(['/', '%2F'], ' ', $this->preferences['titre']);
......
......@@ -1349,7 +1349,7 @@ class ProfilOptionsControllerProfilJeunesseViewPageJeuxTest extends ProfilOption
/** @test */
public function boiteKiosqueTitleShouldLinkToMenuCatalogue() {
$this->assertXPath("//div[@class='boite kiosque']//div//a[contains(@href, '/recherche/simple/titre/Boite+kiosque/style_liste/cube/nb_notices/20/only_img/1/aleatoire/1/tri/date_creation+desc/nb_analyse/50/op_hauteur_img/90/op_transition//op_largeur_img/120/op_hauteur_boite/0/op_captions/0/op_autoplay/0/op_visible/0/op_speed/0/op_auto/0/op_scroll/1/rss_avis/0/id_catalogue/0/id_panier/0/profil_redirect//boite/boite_de_la_division_gauche')]",
$this->assertXPath("//div[@class='boite kiosque']//div//a[contains(@href, '/recherche/simple/titre/Boite+kiosque/style_liste/cube/nb_notices/20/only_img/1/aleatoire/1/tri/date_creation+desc%2C+alpha_titre+asc/nb_analyse/50/op_hauteur_img/90/op_transition//op_largeur_img/120/op_hauteur_boite/0/op_captions/0/op_autoplay/0/op_visible/0/op_speed/0/op_auto/0/op_scroll/1/rss_avis/0/id_catalogue/0/id_panier/0/profil_redirect//boite/boite_de_la_division_gauche')]",
$this->_response->getBody());
}
......
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