Update date parameter in addline function call (#37598)
by default the current date is the interventional date
This commit is contained in:
parent
7f7c7b05aa
commit
19a696a02e
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ if ($action == 'add' && $permissiontoadd) {
|
|||
if ($newfichinterid > 0) {
|
||||
// Now we add line of details
|
||||
foreach ($object->lines as $line) {
|
||||
$newinter->addline($user, $newfichinterid, $line->desc, $line->datei, $line->duree, array());
|
||||
$newinter->addline($user, $newfichinterid, $line->desc, dol_now(), $line->duree, array());
|
||||
}
|
||||
|
||||
// Update the number of interventions created from the template (model)
|
||||
|
|
|
|||
Loading…
Reference in a new issue