PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
← All changes | app/Services/TripListingService.php +10 -0 3.0.8 → 3.0.16 View file →
@@ -189,8 +189,18 @@
189 189 $filters['duration'] = $preset;
190 190 }
191 191 }
192 192
193 + // Availability date: keep only a valid Y-m-d calendar date. Trips are
194 + // then filtered to those with a departure on that date (see
195 + // TripRepository::findWithFilters).
196 + if (!empty($params['available_date']) && is_string($params['available_date'])) {
197 + $date = \Yatra\Helpers\TripListingFilterBuilder::normalizeAvailableDate($params['available_date']);
198 + if ($date !== '') {
199 + $filters['available_date'] = $date;
200 + }
201 + }
202 +
193 203 // Horizontal search "budget" presets (min-max or min+) → price range when explicit prices not set
194 204 if (
195 205 empty($filters['price_min']) && empty($filters['price_max'])
196 206 && !empty($params['budget']) && is_string($params['budget'])