]> git.agnieray.net Git - galette.git/commitdiff
Replacements: no INPUT capacity for Texts (emails)
authorJohan Cwiklinski <johan@x-tnd.be>
Fri, 28 May 2021 06:14:12 +0000 (08:14 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Fri, 28 May 2021 06:14:12 +0000 (08:14 +0200)
galette/lib/Galette/Features/Replacements.php

index 48086349317ed027a6cb3abdfe466166edf1bc44..0fff9e153f072803161e5f726b18a19ee0597de7 100644 (file)
@@ -45,6 +45,7 @@ use Galette\DynamicFields\Separator;
 use Galette\Entity\Adherent;
 use Galette\Entity\Contribution;
 use Galette\Entity\PdfModel;
+use Galette\Entity\Texts;
 use Galette\Repository\DynamicFieldsSet;
 use Galette\DynamicFields\DynamicField;
 use Analog\Analog;
@@ -118,7 +119,7 @@ trait Replacements
                 'LABEL',
                 ''
             ];
-            if ($legacy === true || $dynamic_field instanceof Choice) {
+            if (!($this instanceof Texts) && ($legacy === true || $dynamic_field instanceof Choice)) {
                 $capabilities[] = 'INPUT';
             }
             foreach ($capabilities as $capability) {