File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33namespace ColdTrick \Forms \Definition ;
44
55use ColdTrick \Forms \Exception \InvalidInputException ;
6- use Elgg \Values ;
76use Symfony \Component \HttpFoundation \File \UploadedFile ;
87
98/**
@@ -327,6 +326,9 @@ public function populateFromInput(): void {
327326 }
328327
329328 switch ($ this ->getType ()) {
329+ case 'text_output ' :
330+ // field does not support input
331+ break ;
330332 case 'file ' :
331333 $ uploaded_files = elgg_get_uploaded_files ($ this ->getName ());
332334 if (empty ($ uploaded_files )) {
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ public function process(Result $result): bool {
2525 $ value = $ field ->getValue ();
2626
2727 switch ($ field ->getType ()) {
28+ case 'text_output ' :
2829 case 'file ' :
2930 return ;
3031 case 'longtext ' :
Original file line number Diff line number Diff line change @@ -87,6 +87,10 @@ protected function getBody(): string {
8787
8888 foreach ($ section ->getFields () as $ field ) {
8989 $ this ->addRecipientFromField ($ field );
90+ if ($ field ->getType () === 'text_output ' ) {
91+ continue ;
92+ }
93+
9094 $ field_content [] = $ this ->getBodyField ($ field );
9195
9296 // add the conditional sections based on the value of the field
You can’t perform that action at this time.
0 commit comments