Gestion des entier avec les dates intval( quand le champs est un champ date...)
This commit is contained in:
parent
dfee76ae12
commit
48a54afe3b
@ -8,8 +8,18 @@ class ComptageController extends Zend_Controller_Action
|
||||
|
||||
$request = $this->getRequest();
|
||||
$key = $request->getParam('cle');
|
||||
$value = $request->getParam('valeur');
|
||||
|
||||
switch($key) {
|
||||
case 'dateCrea_etab':
|
||||
case 'dateCrea_ent':
|
||||
case 'dateImmat':
|
||||
$value = intval($request->getParam('valeur'));
|
||||
break;
|
||||
default:
|
||||
$value = $request->getParam('valeur');
|
||||
break;
|
||||
}
|
||||
|
||||
//Session
|
||||
require_once 'Scores/SessionCiblage.php';
|
||||
$session = new SessionCiblage();
|
||||
@ -17,7 +27,6 @@ class ComptageController extends Zend_Controller_Action
|
||||
|
||||
//Comptage
|
||||
require_once 'Scores/Ciblage.php';
|
||||
|
||||
$ciblage = new Ciblage($session->getSession());
|
||||
$total = $ciblage->execute();
|
||||
$insee = $ciblage->calculeRedevanceInsee();
|
||||
|
Loading…
Reference in New Issue
Block a user