mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Make sure IBAN's have their spaces removed.
This commit is contained in:
@@ -69,7 +69,8 @@ trait AccountServiceTrait
|
||||
return null;
|
||||
}
|
||||
|
||||
return $iban;
|
||||
|
||||
return app('steam')->filterSpaces($iban);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -135,7 +135,7 @@ class AccountUpdateService
|
||||
$account->active = $data['active'];
|
||||
}
|
||||
if (array_key_exists('iban', $data)) {
|
||||
$account->iban = $data['iban'];
|
||||
$account->iban = app('steam')->filterSpaces((string)$data['iban']);
|
||||
}
|
||||
|
||||
// set liability, but account must already be a liability.
|
||||
|
||||
Reference in New Issue
Block a user