Update date parameter in addline function call (#37598)

by default the current date is the interventional date
This commit is contained in:
Charlène Benke 2026-03-25 01:00:23 +01:00 committed by GitHub
parent 7f7c7b05aa
commit 19a696a02e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)