Skip to content
Snippets Groups Projects

fix chili template search result

Merged Ghislain Loas requested to merge fix_chili_search_result into master
Compare and
2 files
+ 44
2
Preferences
Compare changes
Files
2
@@ -251,8 +251,15 @@ class Intonation_View_Search_Result extends ZendAfi_View_Helper_BaseHelper {
protected function _renderWall(array $records) : string {
return $this->view->renderWall(new Storm_Collection($records),
fn($wrapper) => $this->view->cardify($wrapper));
// Strictly use this helper to avoid Chili_View_RenderWall
$helper = (new Intonation_View_RenderWall)
->setView($this->view);
return $helper->renderWall(new Storm_Collection($records),
function($wrapped)
{
return $this->view->cardify($wrapped);
});
}