From 9578cf0a952969acf2399b0dd72f70fff5c9119f Mon Sep 17 00:00:00 2001 From: Marius Odendaal Date: Mon, 2 Oct 2023 13:01:08 +0200 Subject: [PATCH] Fix where clause is ambiguous Fix "where clause is ambiguous" --- src/DataSource/Builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataSource/Builder.php b/src/DataSource/Builder.php index 8cce2c8c..270ad0bc 100644 --- a/src/DataSource/Builder.php +++ b/src/DataSource/Builder.php @@ -92,7 +92,7 @@ public function filter(): EloquentBuilder|QueryBuilder foreach ($column as $field => $value) { if (is_array($value) && $filterType === 'input_text') { foreach ($value as $arrayField => $arrayValue) { - $filter($query, $filters, $filterType, $arrayField, $arrayValue); + $filter($query, $filters, $filterType, $field . '.' . $arrayField, $arrayValue); } } else { $filter($query, $filters, $filterType, $field, $value);