From f1453fe9a32945ff779cf608974ba538b3c17c26 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 16 Nov 2017 20:58:06 +0200 Subject: [PATCH] Credit card limits not respected in 3.9? #1745 --- app/Models/EntityModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/EntityModel.php b/app/Models/EntityModel.php index 96ebdd2f527d..79175a43d79e 100644 --- a/app/Models/EntityModel.php +++ b/app/Models/EntityModel.php @@ -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; }