From b6ba0c2a98e6f0c300f6fda1b3d92662e77ca828 Mon Sep 17 00:00:00 2001 From: soufiane Date: Wed, 16 Oct 2024 18:01:02 +0200 Subject: [PATCH] wait #7102 @0:10 --- wp-content/mu-plugins/cube/src/Forms/Consultation.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wp-content/mu-plugins/cube/src/Forms/Consultation.php b/wp-content/mu-plugins/cube/src/Forms/Consultation.php index 472262b..98f8209 100644 --- a/wp-content/mu-plugins/cube/src/Forms/Consultation.php +++ b/wp-content/mu-plugins/cube/src/Forms/Consultation.php @@ -167,6 +167,11 @@ class Consultation extends Base { $this->set_data('imagery-type', __('Aucune image envoyée', 'ccv')); } + if (!empty($this->get_data('link-1')) || !empty($this->get_data('link-2')) || + !empty($this->get_data('link-3')) || !empty($this->get_data('link-4')) ) { + $this->set_data('imagery-type', __('Lien web', 'ccv')); + } + // If the user didn't select the NAS upload option, there's no point including the NAS ID in the form data // NOTE: This relies on the value of the field so make sure it is always the same in both places (consultation.blade.php) if ($this->get_data('imagery-type') !== __('Images téléversées depuis portable', 'ccv')) { -- 2.39.5