diff --git a/library/Scores/Fields.php b/library/Scores/Fields.php index 477b5f6c..34d09fb4 100644 --- a/library/Scores/Fields.php +++ b/library/Scores/Fields.php @@ -757,7 +757,8 @@ Les zones urbaines sensibles constituent un sous-ensemble de l'ensemble plus lar public function setCritere($key, $value, $ex = false) { //Check if the key exist - if ( !in_array($key, $this->fields) ) { + if ( !array_key_exists($key, $this->fields) ) { + Zend_Registry::get('firebug')->info('CLE INCORRECT'); return false; } @@ -808,7 +809,6 @@ Les zones urbaines sensibles constituent un sous-ensemble de l'ensemble plus lar case 'checkbox': if ( $value==0 ) { unset($this->ciblage[$key]); - return; } break; case 'tree': diff --git a/public/themes/default/scripts/fields.js b/public/themes/default/scripts/fields.js index f78cd30a..e7a0296e 100644 --- a/public/themes/default/scripts/fields.js +++ b/public/themes/default/scripts/fields.js @@ -243,32 +243,36 @@ function set(key, value, ex) if (data.insee>0) { html = html + ' (dont '+data.insee +' unité(s) insee)'; } - // - $('#attente').css('display', 'none'); $('#comptage').html(html).css('display','block'); - - //Resume criteres content - $.get('/index/criteres/ajax/1', function(data){ - $('#panel').html(data); - }); } if (data.error==2) { $('div#actionMessage').html( '
'+ - 'Information Valeur saisi incorrecte.
'+ + 'Information : Valeur saisi incorrecte.'+ ''+ - 'Erreur: Un problème technique est survenu.
'+ - '