Init file information by default
This commit is contained in:
parent
50b3a33518
commit
a029f4384f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user