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/TripService.php +6 -1 3.0.7 → 3.0.16 View file →
@@ -1261,9 +1261,14 @@
1261 1261 * Count departures by date
1262 1262 */
1263 1263 public function countDeparturesByDate(int $tripId, string $date): int
1264 1264 {
1265 - return $this->repository->countDeparturesByDate($tripId, $date);
1265 + // The December 2025 service/controller refactor moved this query to
1266 + // TripAvailabilityRepository::countAvailableDeparturesByDate() but left
1267 + // this call pointing at TripRepository, where no such method exists —
1268 + // so the storefront's date-pricing request (fired whenever a customer
1269 + // picks a date) has returned a fatal 500 ever since.
1270 + return $this->availabilityRepository->countAvailableDeparturesByDate($tripId, $date);
1266 1271 }
1267 1272
1268 1273 /**
1269 1274 * Get trip with availability