File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -141,11 +141,9 @@ protected function formToMessage(
141
141
// special handling of uploads
142
142
if ($ element ['type ' ] === 'upload ' ) {
143
143
$ files = $ value ;
144
- $ value = '' ; // do not send source data
144
+ $ value = LangManager:: getString ( ' email_text_attachments ' );
145
145
foreach ($ files as $ file ) {
146
- $ value .= $ fullId
147
- . ' ( ' . LangManager::getString ('uploaded_original ' )
148
- . ' ' . $ file ['file ' ] . ') ' ;
146
+ $ value .= "\n" . $ file ['file ' ];
149
147
$ encoded = explode (", " , $ file ['content ' ])[1 ];
150
148
$ decoded = base64_decode ($ encoded );
151
149
$ this ->attachments []
@@ -162,6 +160,11 @@ protected function formToMessage(
162
160
$ value = LangManager::getString ('email_text_attachments ' );
163
161
}
164
162
163
+ // finally flatten all multivalue fields
164
+ if (is_array ($ value )) {
165
+ $ value = implode (", " , $ value );
166
+ }
167
+
165
168
$ this ->htmlBody .= sprintf ($ htmlLine , $ label , $ value );
166
169
}
167
170
}
You can’t perform that action at this time.
0 commit comments