diff --git a/htdocs/compta/bank/class/account.class.php b/htdocs/compta/bank/class/account.class.php index 9d1bf141dc5..a9ad95d26d5 100644 --- a/htdocs/compta/bank/class/account.class.php +++ b/htdocs/compta/bank/class/account.class.php @@ -1349,7 +1349,7 @@ class Account extends CommonObject // Call function to check BAN - if (! checkIbanForAccount($bac) || ! checkSwiftForAccount($bac)) + if (! checkIbanForAccount($this) || ! checkSwiftForAccount($this)) { $this->error_number = 12; $this->error_message = 'IBANSWIFTControlError';