hotline MT #133285 remove widget size in record domain request with random order.
1 unresolved thread
Merge request reports
Activity
Filter activity
- Resolved by Ghislain Loas
88 92 return []; 89 93 90 94 return Class_Notice::findAllByRequeteRecherche($request_ids, 91 $this->_settings->getSize(), 95 $this->_random ? 100 : $this->_settings->getSize(), J'ai l'impression que ce "random" réimplémente quelque chose qui existe déjà dans Class_Catalogue::getRequetes : preferences['nb_notices'] et preferences['aleatoire'].
Cela ne fonctionnerait pas de set dans _findElements les params['nb_notices'] et 'aleatoire' en amont et éviter d'ajouter cet attribut ? Et ainsi se rapprocher du fonctionnement de ZendAfi_View_Helper_Accueil_Kiosque::getKiosqueHtml ?
Sinon, pourquoi ne pas déléguer ce calcul de _random à settings ? $this->_settings->isDisplayRandom ?
changed this line in version 2 of the diff
added 1 commit
- 518ff752 - hotline MT #133285 remove widget size in record domain request with random order.
enabled an automatic merge when the pipeline for 518ff752 succeeds
added 1 commit
- 409a052a - hotline MT #133285 remove widget size in record domain request with random order.
mentioned in commit ffcb0d6d