Skip to content

Commit

Permalink
FIX : Update on a sold line of bank entrie set the type to empty, now…
Browse files Browse the repository at this point in the history
… it's fixed #22539 (#31888)
  • Loading branch information
kkhelifa-opendsi authored Nov 15, 2024
1 parent 038f8d5 commit d0323fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/compta/bank/line.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@
$sql .= " SET ";
// Always opened
if (GETPOSTISSET('value')) {
$sql .= " fk_type='".$db->escape(GETPOST('value'))."',";
$type = GETPOST('value');
$sql .= " fk_type='".$db->escape(empty($type) && $object->fk_type == 'SOLD' ? 'SOLD' : $type)."',";
}
if (GETPOSTISSET('num_chq')) {
$sql .= " num_chq='".$db->escape(GETPOST("num_chq"))."',";
Expand Down

0 comments on commit d0323fa

Please sign in to comment.