A free open source IT asset/license management system
Pint
snipefde6ff1571db
diff --git a/app/Models/Traits/Searchable.php b/app/Models/Traits/Searchable.phpindex ec22765713..8e2ba663fa 100644--- a/app/Models/Traits/Searchable.php+++ b/app/Models/Traits/Searchable.php@@ -471,14 +471,14 @@ trait Searchableforeach ($customFields as $field) {foreach ($terms as $term) {- if (!$firstConditionAdded) {- $customFieldQuery->where($this->getTable() . '.' . $field->db_column_name(), 'LIKE', '%' . $term . '%');+ if (! $firstConditionAdded) {+ $customFieldQuery->where($this->getTable().'.'.$field->db_column_name(), 'LIKE', '%'.$term.'%');$firstConditionAdded = true;continue;}- $customFieldQuery->orWhere($this->getTable() . '.' . $field->db_column_name(), 'LIKE', '%' . $term . '%');+ $customFieldQuery->orWhere($this->getTable().'.'.$field->db_column_name(), 'LIKE', '%'.$term.'%');}}});