Espace dans les siret supprimées

This commit is contained in:
Michael RICOIS 2011-12-16 09:01:21 +00:00
parent 3b56799a75
commit 8a98c1f817

View File

@ -854,8 +854,8 @@ class SaisieController extends Zend_Controller_Action
case 'copy':
$siretIn = $request->getParam('siretIn');
$siretOut = $request->getParam('siretOut');
$siretIn = str_replace(' ', '', $request->getParam('siretIn'));
$siretOut = str_replace(' ', '', $request->getParam('siretOut'));
$idan = $request->getParam('idan');
if ( intval($siretIn)!=0 )
@ -913,7 +913,7 @@ class SaisieController extends Zend_Controller_Action
case 'even':
$siret = $request->getParam('siret');
$siret = str_replace(' ', '', $request->getParam('siret'));
$idan = $request->getParam('idan');
$codeEven = $request->getParam('even');
$siren = substr($siret,0,9);