]> _ Git - ccv-wordpress.git/commitdiff
wait #7102 @0:10
authorsoufiane <soufiane@cubedesigners.com>
Wed, 16 Oct 2024 16:01:02 +0000 (18:01 +0200)
committersoufiane <soufiane@cubedesigners.com>
Wed, 16 Oct 2024 16:01:02 +0000 (18:01 +0200)
wp-content/mu-plugins/cube/src/Forms/Consultation.php

index 472262b1e15b82f94e698abd199cf6a36eb74cb9..98f820980c7486028a8471fe84213b02c68bee6c 100644 (file)
@@ -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')) {