Fix: Maxi bug. Value for date used in object numbering module was current date instead of date of object.
This commit is contained in:
parent
6d8755edd4
commit
d77f36285e
@ -4,7 +4,7 @@
|
||||
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
* Copyright (C) 2005-2007 Regis Houssin <regis@dolibarr.fr>
|
||||
* Copyright (C) 2008 Raphael Bertrand (Resultic) <raphael.bertrand@resultic.fr>
|
||||
* Copyright (C) 2008 Raphael Bertrand (Resultic) <raphael.bertrand@resultic.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -213,6 +213,7 @@ if ($handle)
|
||||
print '</td>';
|
||||
|
||||
$ficheinter=new Fichinter($db);
|
||||
$ficheinter->initAsSpecimen();
|
||||
|
||||
// Info
|
||||
$htmltooltip='';
|
||||
|
||||
@ -217,7 +217,7 @@ if ($_POST['action'] == "addligne" && $user->rights->ficheinter->creer)
|
||||
}
|
||||
|
||||
/*
|
||||
* Mise <EFBFBD> jour d'une ligne d'intervention
|
||||
* Mise a jour d'une ligne d'intervention
|
||||
*/
|
||||
if ($_POST['action'] == 'updateligne' && $user->rights->ficheinter->creer && $_POST["save"] == $langs->trans("Save"))
|
||||
{
|
||||
@ -344,8 +344,9 @@ if ($_GET['action'] == 'down' && $user->rights->ficheinter->creer)
|
||||
|
||||
|
||||
/*
|
||||
* Affichage page
|
||||
* View
|
||||
*/
|
||||
|
||||
$html = new Form($db);
|
||||
$formfile = new FormFile($db);
|
||||
|
||||
@ -374,7 +375,8 @@ if ($_GET["action"] == 'create')
|
||||
}
|
||||
|
||||
$ficheinter = new Fichinter($db);
|
||||
$result=$ficheinter->fetch($fichinterid);
|
||||
$ficheinter->date = time();
|
||||
if ($fichinterid) $result=$ficheinter->fetch($fichinterid);
|
||||
|
||||
$obj = $conf->global->FICHEINTER_ADDON;
|
||||
$obj = "mod_".$obj;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user