From 7e53de8c28c17d6f2e65f5302a48e151dcf1652e Mon Sep 17 00:00:00 2001 From: Damien LASSERRE Date: Mon, 16 Jan 2012 15:34:53 +0000 Subject: [PATCH] Correction des array en string pour l'affichage des sessions dans le select --- application/views/default/helpers/Field.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/application/views/default/helpers/Field.php b/application/views/default/helpers/Field.php index f2ca9e5c..0db3410e 100644 --- a/application/views/default/helpers/Field.php +++ b/application/views/default/helpers/Field.php @@ -56,7 +56,7 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract private function selectMultipleHTML($name, $field) { $session = new SessionCiblage(); - + $return = ''; $return .= ''; foreach($field['fields'][$field['type']]['value'] as $value => $label) { $selected = ""; - if(($session->getCritere($name) != null) and $session->getCritere($name) == $value) + if(($sessionValeur != null) and $sessionValeur == $value) $selected = " selected"; $return .= ''.$label.''; }