]> git.agnieray.net Git - galette.git/commitdiff
Prevent renaming dynamic files for members; refs #1697
authorJohan Cwiklinski <johan@x-tnd.be>
Mon, 9 Oct 2023 04:58:34 +0000 (06:58 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Mon, 9 Oct 2023 04:58:34 +0000 (06:58 +0200)
galette/lib/Galette/Controllers/Crud/DynamicFieldsController.php

index 9c4bb28144c51b639a326fd89bb0b0699662833c..757d91d344ec19dc4a0e62cc0e340080ed2b3baf 100644 (file)
@@ -341,6 +341,9 @@ class DynamicFieldsController extends CrudController
                 );
         }
 
+        if ($form_name === 'adh') {
+            $form_name = 'member'; //for compatibility with existing files
+        }
         $filename = str_replace(
             [
                 '%form',