diff --git a/app/Models/Traits/Searchable.php b/app/Models/Traits/Searchable.php index 1430ce649a..fb4d9b30ca 100644 --- a/app/Models/Traits/Searchable.php +++ b/app/Models/Traits/Searchable.php @@ -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',