From f6872ca8c9a9fcbc675928fc637e49993a9220a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Thu, 1 Jun 2023 13:35:07 +0300 Subject: [PATCH] qualify column --- app/Models/Common/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Common/Item.php b/app/Models/Common/Item.php index 64e5dbf9a..915583c5e 100644 --- a/app/Models/Common/Item.php +++ b/app/Models/Common/Item.php @@ -107,7 +107,7 @@ class Item extends Model return $query; } - return $query->whereIn('type', $type); + return $query->whereIn($this->qualifyColumn('type'), $type); } /**