FIX Update hour of intervention line
This commit is contained in:
parent
74ef3b076d
commit
077c3312ce
@ -578,7 +578,7 @@ if (empty($reshook)) {
|
||||
} else {
|
||||
$mesg = $object->error;
|
||||
}
|
||||
} elseif ($action == 'updateline' && $user->rights->ficheinter->creer && GETPOST('save', 'alpha') == $langs->trans("Save")) {
|
||||
} elseif ($action == 'updateline' && $user->rights->ficheinter->creer && GETPOST('save', 'alpha')) {
|
||||
// Mise a jour d'une ligne d'intervention
|
||||
$objectline = new FichinterLigne($db);
|
||||
if ($objectline->fetch($lineid) <= 0) {
|
||||
@ -596,7 +596,7 @@ if (empty($reshook)) {
|
||||
$date_inter = dol_mktime(GETPOST('dihour', 'int'), GETPOST('dimin', 'int'), 0, GETPOST('dimonth', 'int'), GETPOST('diday', 'int'), GETPOST('diyear', 'int'));
|
||||
$duration = convertTime2Seconds(GETPOST('durationhour', 'int'), GETPOST('durationmin', 'int'));
|
||||
|
||||
$objectline->datei = $date_inter;
|
||||
$objectline->date = $date_inter;
|
||||
$objectline->desc = $desc;
|
||||
$objectline->duration = $duration;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user