mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-21 16:38:36 -06:00
Add marker. Seems fastest solution.
This commit is contained in:
parent
11f77685e4
commit
5725570dbb
@ -41,7 +41,8 @@ class UniqueAccountNumber implements ValidationRule
|
||||
*/
|
||||
public function __construct(?Account $account, ?string $expectedType)
|
||||
{
|
||||
app('log')->debug('Constructed UniqueAccountNumber');
|
||||
app('log')
|
||||
->debug('Constructed UniqueAccountNumber');
|
||||
$this->account = $account;
|
||||
$this->expectedType = $expectedType;
|
||||
// a very basic fix to make sure we get the correct account type:
|
||||
@ -62,7 +63,7 @@ class UniqueAccountNumber implements ValidationRule
|
||||
*/
|
||||
public function message(): string
|
||||
{
|
||||
return (string)trans('validation.unique_account_number_for_user');
|
||||
return (string) trans('validation.unique_account_number_for_user');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -129,8 +130,7 @@ class UniqueAccountNumber implements ValidationRule
|
||||
->where('accounts.user_id', auth()->user()->id)
|
||||
->where('account_types.type', $type)
|
||||
->where('account_meta.name', '=', 'account_number')
|
||||
->where('account_meta.data', json_encode($accountNumber))
|
||||
;
|
||||
->where('account_meta.data', json_encode($accountNumber));
|
||||
|
||||
if (null !== $this->account) {
|
||||
$query->where('accounts.id', '!=', $this->account->id);
|
||||
|
BIN
public/marker-icon-2x.png
Normal file
BIN
public/marker-icon-2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
public/marker-shadow.png
Normal file
BIN
public/marker-shadow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 618 B |
Loading…
Reference in New Issue
Block a user