diff --git a/htdocs/loan/class/loanschedule.class.php b/htdocs/loan/class/loanschedule.class.php index ffe1942998e00..135198de4a7ce 100644 --- a/htdocs/loan/class/loanschedule.class.php +++ b/htdocs/loan/class/loanschedule.class.php @@ -315,7 +315,7 @@ public function update($user = 0, $notrigger = 0) $this->note_public = trim($this->note_public); } if (isset($this->fk_bank)) { - $this->fk_bank = trim($this->fk_bank); + $this->fk_bank = (int) $this->fk_bank; } if (isset($this->fk_payment_loan)) { $this->fk_payment_loan = (int) $this->fk_payment_loan;