Init file information by default

This commit is contained in:
Michael RICOIS 2013-03-11 09:08:53 +00:00
parent 50b3a33518
commit a029f4384f

View File

@ -272,6 +272,9 @@ if ($opts->id) {
$commandesM = new Application_Model_Commandes($db);
$commande = $commandesM->find(intval($opts->id))->current();
$file = basename($commande->fichier);
//Init file information
$commandesM->update(array('nbLigne'=>0,'error'=>''), "id = ".$commande->id);
} else {
$file = $opts->file;
}