diff --git a/app/Search/Sapi3/Sapi3SearchService.php b/app/Search/Sapi3/Sapi3SearchService.php index 520098750..d2e60497f 100644 --- a/app/Search/Sapi3/Sapi3SearchService.php +++ b/app/Search/Sapi3/Sapi3SearchService.php @@ -31,6 +31,10 @@ public function findUiTPASOrganizers(string ...$ids): PagedCollection { $searchQuery = new SearchQuery(); $searchQuery->setEmbed(true); + if (empty($ids)) { + return new PagedCollection(); + } + foreach ($ids as $id) { $searchQuery->addParameter(new Id($id)); } diff --git a/resources/translations/en.json b/resources/translations/en.json index 21d1ad1b3..96b92e6a6 100644 --- a/resources/translations/en.json +++ b/resources/translations/en.json @@ -107,10 +107,10 @@ "info": "You only pay when you want to use real data. You can explore all possibilities with test events first." }, "integration_name": "Integration name", - "description_name": "Give a clear title to your integration and mention the name of the organization or municipality for which the integration is built", + "description_name": "Give a clear title to your integration and mention the name of the organization or municipality for which the integration is built.", "aim": { "label": "Integration purpose", - "info": "Provide a clear, motivated description of the integration you want to set up with the publiq platform (max. 200 characters)" + "info": "Provide a clear, motivated description of the integration you want to set up with the publiq platform (max. 200 characters)." }, "website": { "label": "Website", @@ -169,7 +169,7 @@ "deleted": "Deleted", "pending_approval_integration": "Pending approval", "pending_approval_payment": "Pending approval", - "pending_approval_integration_description": "Approval from publiq is necessary for the live integration. All information to smoothly go live can be found <0>here", + "pending_approval_integration_description": "Approval from publiq is necessary for the live integration. All information to smoothly go live can be found <0>here.", "pending_approval_payment_description": "Ready to work with real data and events? Activate your Search API integration (from €125 per year)", "here": "here.", "activate": "Activate" @@ -265,6 +265,7 @@ "test": "Test", "live": "Live", "status_alert": "Approval from publiq is necessary for the live integration of this project. All information to smoothly go live can be found", + "in_progress": "Your activation request is being processed.", "uitid_alert": "You can switch to authentication with client credentials. Check <0>here whether this method of authentication is suitable for your application. Once you have requested client credentials, your API key remains valid for another 6 months.", "uitid_alert_link": "https://docs.publiq.be/docs/authentication/methods/overview", "action_status": "Request activation", diff --git a/resources/translations/nl.json b/resources/translations/nl.json index bcb6bb121..d2db5a4a2 100644 --- a/resources/translations/nl.json +++ b/resources/translations/nl.json @@ -63,7 +63,7 @@ "action": "Probeer {{type}}", "uitpas_api": { "title": "UiTPAS API", - "description": "Ken kortingen toe, ruil voordelen om en spaar punten voor UiTPAS-houders", + "description": "Ken kortingen toe, ruil voordelen om en spaar punten voor UiTPAS-houders.", "features": [ "Oplossing voor koppeling met ticketing systemen", "Uitgebreide stap-voor-stap gidsen", @@ -107,10 +107,10 @@ "info": "Je betaalt pas wanneer je gebruik wilt maken van echte data. Je probeert eerst alle mogelijkheden met testevenementen." }, "integration_name": "Naam integratie", - "description_name": "Geef een duidelijk titel aan je integratie en vermeld de naam van de organisatie of gemeente waarvoor de integratie gebouwd wordt", + "description_name": "Geef een duidelijk titel aan je integratie en vermeld de naam van de organisatie of gemeente waarvoor de integratie gebouwd wordt.", "aim": { "label": "Doel van de integratie", - "info": "Geef een duidelijke, gemotiveerde beschrijving van de integratie die je met het publiq platform wil opzetten (max. 200 karakters)" + "info": "Geef een duidelijke, gemotiveerde beschrijving van de integratie die je met het publiq platform wil opzetten (max. 200 karakters)." }, "website": { "label": "Website", @@ -171,7 +171,7 @@ "pending_approval_payment": "In Aanvraag", "pending_approval_integration_description": "Voor de live-integratie is goedkeuring van publiq nodig. Alle informatie om vlot live te kunnen gaan vind je <0>hier.", "before_going_live_link": "https://docs.publiq.be/docs/uitdatabank/entry-api/requirements-before-going-live", - "pending_approval_payment_description": "Aan de slag met echte data en evenementen? Activeer je Search API integratie (vanaf 125 euro per jaar)", + "pending_approval_payment_description": "Aan de slag met echte data en evenementen? Activeer je Search API integratie (vanaf 125 euro per jaar).", "activate": "Activatie aanvragen" }, "activation_dialog": { @@ -247,7 +247,7 @@ "subscription": "Prijsplan", "to_pay": "Te betalen", "name": "Naam bedrijf, organisatie of gemeente", - "free_until_live": "Deze integratie draait momenteel op een testomgeving. Je betaalt pas wanneer je integratie actief is op de live-omgeving", + "free_until_live": "Deze integratie draait momenteel op een testomgeving. Je betaalt pas wanneer je integratie actief is op de live-omgeving.", "address": { "street": "Straat en nummer", "postcode": "Postcode", @@ -271,7 +271,7 @@ "client_id": "Client id", "client_secret": "Client secret", "api_key": "API Key", - "info": "Deze credentials blijven nog {{amount}} geldig en worden definitief verwijderd op {{date}}" + "info": "Deze credentials blijven nog {{amount}} geldig en worden definitief verwijderd op {{date}}." }, "integration_settings": { "title": "Instellingen", diff --git a/resources/ts/Components/Integrations/Detail/OrganizersInfo.tsx b/resources/ts/Components/Integrations/Detail/OrganizersInfo.tsx index ad6a8bac1..1bc211a62 100644 --- a/resources/ts/Components/Integrations/Detail/OrganizersInfo.tsx +++ b/resources/ts/Components/Integrations/Detail/OrganizersInfo.tsx @@ -33,7 +33,7 @@ const OrganizersSection = ({ }); }; - if (!organizers.length) { + if (!organizers?.length) { return null; }