1
0
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:
Hillel Coren 2017-11-16 20:58:06 +02:00
parent 2d49c472c0
commit f1453fe9a3

View File

@ -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;
}