From 9ef4009762fe8199e0b5af34910b535080939848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 5 Nov 2019 23:45:23 +0100 Subject: [PATCH] Update list.php --- htdocs/opensurvey/list.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/opensurvey/list.php b/htdocs/opensurvey/list.php index aa01088744f..f5d9ca40f24 100644 --- a/htdocs/opensurvey/list.php +++ b/htdocs/opensurvey/list.php @@ -75,7 +75,7 @@ if (!$user->rights->opensurvey->read) accessforbidden(); // Definition of fields for list $arrayfields=array(); -foreach($object->fields as $key => $val) +foreach($arrayfields as $key => $val) { // If $val['visible']==0, then we never show the field if (! empty($val['visible'])) $arrayfields['t.'.$key]=array('label'=>$val['label'], 'checked'=>(($val['visible']<0)?0:1), 'enabled'=>$val['enabled'], 'position'=>$val['position']); @@ -431,7 +431,7 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/list_print_total.tpl.php'; // If no record found if ($num == 0) { - $colspan=1; + $colspan = 8; foreach($arrayfields as $key => $val) { if (! empty($val['checked'])) $colspan++; } print ''.$langs->trans("NoRecordFound").''; }