fix: match hotel codes assigned to users at beginning or end
This commit is contained in:
1 parent
5a07d95837
commit
edaa294cc9
3 files changed
+14
-24
No files matched your search
@@ -43,7 +43,7 @@ class HotelDataProvider
|
||||
$hotels = [];
|
||||
|
||||
foreach ($this->getAll() as $hotel) {
|
||||
if (str_starts_with($hotel->getCode(), $code)) {
|
||||
if (str_starts_with($hotel->getCode(), $code) || str_ends_with($hotel->getCode(), $code)) {
|
||||
$hotels[] = $hotel;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user