fix: match hotel codes assigned to users at beginning or end

This commit is contained in:
Björn Fromme
2025-01-06 12:22:39 +01:00
parent 5a07d95837
commit edaa294cc9
3 changed files with 14 additions and 24 deletions
@@ -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;
}
}