PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / 2.5.0
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution v2.5.0
2.5.0 2.4.0 2.3.0 2.2.5 2.2.0 2.1.2 2.1.1 trunk 1.10.0 1.10.01 1.10.02 1.5.0 1.5.01 1.5.02 1.5.1 1.5.10 1.5.20 1.5.21 1.5.22 1.5.23 1.5.24 1.5.25 1.6.0 1.7.0 1.7.1 All 34 releases
← All changes | app/Services/Integrations/CalendarIntegrationService.php +9 -1 2.1.2 → 2.5.0 View file →
@@ -28,9 +28,17 @@
28 28 ];
29 29
30 30 $mergeFields = false;
31 31 if ($integrationId) {
32 - $feed = Meta::where(['object_id' => $slotId, 'id' => $integrationId])->first();
32 + $feed = Meta::where('id', $integrationId)
33 + ->where('object_id', $slotId)
34 + ->where('object_type', 'integration')
35 + ->where('key', $integrationName . '_feeds')
36 + ->first();
37 +
38 + if (!$feed) {
39 + throw new ValidationException(__('Integration feed not found', 'fluent-booking'), 404); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
40 + }
33 41
34 42 if ($feed->value) {
35 43 $settings = $feed->value;
36 44 $settings = apply_filters('fluent_booking/get_integration_values_' . $integrationName, $settings, $feed, $slotId);