From 286e1af609d0d83d4e0c31c2d459295053b126d0 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 9 Jul 2015 12:12:54 +0200 Subject: [PATCH] =?UTF-8?q?Task=20#1145=20-=20Ajout=20attribut=20fait=20d?= =?UTF-8?q?=C3=A9caler=20dans=20CARD->r=C3=A9sum=C3=A9=20#1145:=20Ajout=20?= =?UTF-8?q?attribut=20fait=20d=C3=A9caler=20dans=20CARD->r=C3=A9sum=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/template/result_cat_card_summary.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/include/template/result_cat_card_summary.php b/include/template/result_cat_card_summary.php index 29a359585..51e71c217 100644 --- a/include/template/result_cat_card_summary.php +++ b/include/template/result_cat_card_summary.php @@ -47,12 +47,18 @@ echo td($detail); echo td($attr->av_text,'style="padding: 0 10 1 10;white-space:nowrap;" '.$sort); else: $value=$cn->make_array($attr->ad_extra); - for ($e=0;$eav_text): - echo td($value[$e]['label'],'style="padding: 0 10 1 10;white-space:nowrap;"'); - break; - endif; - endfor; + $found=0; + for ($e=0;$eav_text): + echo td($value[$e]['label'],'style="padding: 0 10 1 10;white-space:nowrap;"'); + $found=1; + break; + endif; + endfor; + if ( $found == 0 ): + echo td($attr->av_text,'style="padding: 0 10 1 10;white-space:nowrap;"'); + + endif; endif; endforeach;