Date
This commit is contained in:
parent
553daa922a
commit
d6178bd605
@ -1077,7 +1077,7 @@ class Saisie extends Scores_Ws_Server
|
||||
$annonce = $res[0];
|
||||
$annonce['siren'] = $sirenOut;
|
||||
$annonce['sirenValide'] = 2;
|
||||
$annonce['dateInsert'] = date('YmdHis');
|
||||
$annonce['dateInsert'] = date('Y-m-d H:i:s');
|
||||
$annonce['idSirenage'] = $this->User->id;
|
||||
$annonce['nic'] = $nicOut;
|
||||
if ($nicOut>0) $annonce['nicValide'] = 2;
|
||||
@ -1100,17 +1100,20 @@ class Saisie extends Scores_Ws_Server
|
||||
$annonce = $res[0];
|
||||
$annonce['siren'] = $sirenOut;
|
||||
$annonce['sirenValide'] = 2;
|
||||
$annonce['dateInsert'] = date('YmdHis');
|
||||
$annonce['dateInsert'] = date('Y-m-d H:i:s');
|
||||
$annonce['idSirenage'] = $this->User->id;
|
||||
$annonce['nic'] = $nicOut;
|
||||
if ($nicOut>0) $annonce['nicValide'] = 2;
|
||||
$rep=$iDb->insert($table, $annonce, true, true);
|
||||
Metier_Util_Log::write('I',var_export($rep,true));die;
|
||||
if ($iDb->insert($table, $annonce, true, true)) {
|
||||
Metier_Util_Log::write('I',"Duplication de l'annonce en source $source sur n°$idAnn (siretIn=$siretIn, siretOut=$siretOut)",__LINE__,__FILE__, __FUNCTION__, __CLASS__);
|
||||
$result = true;
|
||||
} else {
|
||||
Metier_Util_Log::write('I',"Duplication impossible de l'annonce en source $source sur n°$idAnn (siretIn=$siretIn, siretOut=$siretOut) : ".mysql_error(),__LINE__,__FILE__, __FUNCTION__, __CLASS__);
|
||||
Metier_Util_Log::write('I',"Duplication impossible de l'annonce en source $source sur n°$idAnn (siretIn=$siretIn, siretOut=$siretOut) : ".mysql_error($iDb),__LINE__,__FILE__, __FUNCTION__, __CLASS__);
|
||||
//Metier_Util_Log::write('I',var_export($annonce,true));
|
||||
$error->errnum = 1;
|
||||
$error->errmsg = "Duplication de l'annonce impossible";
|
||||
$error->errmsg = "Duplication de l'annonce impossible".__LINE__;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user