Skip to content

Commit

Permalink
FIX Dolibarr#30768 allocate the correct invoice_line_id to the elemen…
Browse files Browse the repository at this point in the history
…t timespent (Dolibarr#30769)
  • Loading branch information
evarisk-micka authored Aug 27, 2024
1 parent 163e623 commit e7e96f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/projet/tasks/time.php
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@

// Update lineid into line of timespent
$sql = 'UPDATE '.MAIN_DB_PREFIX.'projet_task_time SET invoice_line_id = '.((int) $lineid).', invoice_id = '.((int) $tmpinvoice->id);
$sql .= ' WHERE rowid IN ('.$db->sanitize(join(',', $toselect)).') AND fk_user = '.((int) $userid);
$sql .= ' WHERE rowid = '.((int) $timespent_id).' AND fk_user = '.((int) $userid);
$result = $db->query($sql);
if (!$result) {
$error++;
Expand Down

0 comments on commit e7e96f6

Please sign in to comment.