diff --git a/app/Http/Controllers/Fo/ContactController.php b/app/Http/Controllers/Fo/ContactController.php index 229266aa..1b85da70 100644 --- a/app/Http/Controllers/Fo/ContactController.php +++ b/app/Http/Controllers/Fo/ContactController.php @@ -54,7 +54,7 @@ class ContactController extends Controller if (ContactFormType::make($validatedData['type'])->equals(ContactFormType::complain)) { // Send to Passerelle if it is a complain about a product. \dispatch(new SendPasserelleMail($data, $joinFilePath)); - } else if (ContactFormType::make($validatedData['locale'] ?? null)->equals(ContactFormType::nl)) { + } else if (isset($validatedData['locale']) && ContactFormType::make($validatedData['locale'])->equals(ContactFormType::nl)) { // Send to Export Mailing List if it is a complain from NL page. app()->setLocale('nl'); \dispatch(new SendNLMail($data, $joinFilePath)); diff --git a/composer.lock b/composer.lock index c3def65e..a6e08e8e 100644 --- a/composer.lock +++ b/composer.lock @@ -2659,16 +2659,16 @@ }, { "name": "ldc/ldccrmv4client", - "version": "4.1.4", + "version": "4.1.5", "source": { "type": "git", "url": "git@lab.s-web.fr:ldc-web/projets/crm-client.git", - "reference": "9aa66a8b3f62c401b0fd43616ba5fd52fe15541a" + "reference": "9725ed12914d75c39f0ee66990a1bff6c77f457c" }, "dist": { "type": "zip", - "url": "https://lab.s-web.fr/api/v4/projects/26/packages/composer/archives/ldc/ldccrmv4client.zip?sha=9aa66a8b3f62c401b0fd43616ba5fd52fe15541a", - "reference": "9aa66a8b3f62c401b0fd43616ba5fd52fe15541a", + "url": "https://lab.s-web.fr/api/v4/projects/26/packages/composer/archives/ldc/ldccrmv4client.zip?sha=9725ed12914d75c39f0ee66990a1bff6c77f457c", + "reference": "9725ed12914d75c39f0ee66990a1bff6c77f457c", "shasum": "" }, "require": { @@ -2698,21 +2698,16 @@ "license": [ "MIT" ], - "authors": [ - { - "name": "Jérémy Munsch", - "email": "jeremy.munsch@ldc.fr", - "homepage": "https://jeremydev.ovh" - } - ], "description": "LDC CRM Client V4", - "homepage": "https://github.com/kwaadpepper", "keywords": [ "CRM", "Client", "LDC", "Laravel" - ] + ], + "support": { + "email": "digital@ldc.fr" + } }, { "name": "league/commonmark", diff --git a/resources/ts/fo/partials/contact-form.ts b/resources/ts/fo/partials/contact-form.ts index 05246bc7..ebd499df 100644 --- a/resources/ts/fo/partials/contact-form.ts +++ b/resources/ts/fo/partials/contact-form.ts @@ -35,6 +35,7 @@ function checkRadioChecked(value: string) { displayComplainForm(value === "3"); // Display complain form if the current checked radio is ContactFormType::complain, club or games. + // FIXME: Passer les values depuis le controller const validEnumsValues = ["1", "3", "9"]; displayFileInput(validEnumsValues.includes(value)); }