diff --git a/htdocs/societe/class/companybankaccount.class.php b/htdocs/societe/class/companybankaccount.class.php index 9fa62dea587..4f9875fb119 100644 --- a/htdocs/societe/class/companybankaccount.class.php +++ b/htdocs/societe/class/companybankaccount.class.php @@ -110,6 +110,9 @@ class CompanyBankAccount extends Account { $this->create(); } + + if (dol_strlen($this->domiciliation) > 255) $this->domiciliation = dol_trunc($this->domiciliation, 254, 'right', 'UTF-8', 1); + if (dol_strlen($this->owner_address) > 255) $this->owner_address = dol_trunc($this->owner_address, 254, 'right', 'UTF-8', 1); $sql = "UPDATE ".MAIN_DB_PREFIX."societe_rib SET"; $sql.= " bank = '" .$this->db->escape($this->bank)."'"; diff --git a/htdocs/societe/rib.php b/htdocs/societe/rib.php index 39069d1e3f5..e7eeca429b9 100644 --- a/htdocs/societe/rib.php +++ b/htdocs/societe/rib.php @@ -467,7 +467,7 @@ if ($socid && $action == 'edit' && $user->rights->societe->creer) print '