diff --git a/lib/classes/module/report/nav.class.php b/lib/classes/module/report/nav.class.php index 358446cecb..afcd27c8d5 100644 --- a/lib/classes/module/report/nav.class.php +++ b/lib/classes/module/report/nav.class.php @@ -573,11 +573,11 @@ class module_report_nav extends module_report */ public function buildTabUserWhat($bid, $rid, $tab = false) { + $this->initialize(); $sbas_id = phrasea::sbasFromBas($bid); $record = new record_adapter($sbas_id, $rid); $this->setDisplay($tab); - $this->initialize(); $this->champ = array( 'photo', 'record_id', @@ -593,7 +593,7 @@ class module_report_nav extends module_report $x = $record->get_thumbnail(); - $this->result = array( + $this->result[] = array( 'photo' => "" @@ -603,10 +603,10 @@ class module_report_nav extends module_report , 'titre' => $record->get_title() , 'taille' => $document->get_size() ); - + $this->setDisplayNav(); $this->setReport(); - + return $this->report; } diff --git a/templates/web/report/generate_tab.twig b/templates/web/report/generate_tab.twig index 34fa44fbea..668b5c337f 100644 --- a/templates/web/report/generate_tab.twig +++ b/templates/web/report/generate_tab.twig @@ -74,18 +74,18 @@ {% endif %} {% for class, config in result.display %} - {% for key , result in value %} + {% for key , res in value %} {% if key == class %} - {% if config.bound == 1 and "" not in result %} + {% if config.bound == 1 and "" not in res %} {% if key == "user" and value.user == "TOTAL"%} - {{ result|raw }} + {{ res|raw }} {% elseif is_nav or is_doc %} - {{ result|raw }} + {{ res|raw }} {% else %} - {{ result|raw }} + {{ res|raw }} {% endif %} {% else %} - {{ result|raw }} + {{ res|raw }} {% endif %} {% endif %} {% endfor %}