mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Credit card limits not respected in 3.9? #1745
This commit is contained in:
parent
2d49c472c0
commit
f1453fe9a3
@ -161,7 +161,7 @@ class EntityModel extends Eloquent
|
||||
|
||||
$query->where($this->getTable() .'.account_id', '=', $accountId);
|
||||
|
||||
if (func_num_args() > 1 && ! $publicId) {
|
||||
if (func_num_args() > 1 && ! $publicId && ! $accountId) {
|
||||
$query->where('id', '=', 0);
|
||||
return $query;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user