Added adminuser relationship in Searchable to concat first name and last name

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-06-17 13:01:57 +01:00
parent c2c79ee231
commit 130669a2f9
+1 -1
View File
@@ -164,7 +164,7 @@ trait Searchable
}
}
// I put this here because I only want to add the concat one time in the end of the user relation search
if($relation == 'user') {
if(($relation == 'adminuser') || ($relation == 'user')) {
$query->orWhereRaw(
$this->buildMultipleColumnSearch([
'users.first_name',