Commit 6c93bc17 authored by Jacob Priddy's avatar Jacob Priddy 👌

Make door search also search for door admin notes

parent 1380ec26
Pipeline #13239 passed with stages
in 2 minutes and 6 seconds
......@@ -146,7 +146,8 @@ class DatabaseDoorsRepository implements DoorsRepository
$builder->where('location', 'ILIKE', "%$query%")
->orWhere('id', '=', self::castToInt($query))
->orWhere('name', 'ILIKE', "%$query%")
->orWhere('version', 'ILIKE', "%$query%");
->orWhere('version', 'ILIKE', "%$query%")
->orWhere('notes', 'ILIKE', "%$query%");
});
}
......
......@@ -83,6 +83,7 @@ class InMemoryDoorsRepository implements DoorsRepository
return stripos($door->getLocation(), $query) !== false
|| stripos($door->getName(), $query) !== false
|| stripos($door->getVersion(), $query) !== false
|| stripos($door->getNotes(), $query) !== false
|| $door->hasIdOf($query);
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment