fix signature url issue (#560)
This commit is contained in:
parent
0d3733a137
commit
6769da6e10
|
|
@ -158,7 +158,7 @@ class FormSubmissionFormatter
|
||||||
}
|
}
|
||||||
} elseif ($field['type'] == 'matrix' && is_array($data[$field['id']])) {
|
} elseif ($field['type'] == 'matrix' && is_array($data[$field['id']])) {
|
||||||
$returnArray[$field['name']] = $this->getMatrixString($data[$field['id']]);
|
$returnArray[$field['name']] = $this->getMatrixString($data[$field['id']]);
|
||||||
} elseif ($field['type'] == 'files') {
|
} elseif (in_array($field['type'], ['files', 'signature'])) {
|
||||||
if ($this->outputStringsOnly) {
|
if ($this->outputStringsOnly) {
|
||||||
$formId = $this->form->id;
|
$formId = $this->form->id;
|
||||||
$returnArray[$field['name']] = implode(
|
$returnArray[$field['name']] = implode(
|
||||||
|
|
@ -234,7 +234,7 @@ class FormSubmissionFormatter
|
||||||
}
|
}
|
||||||
} elseif ($field['type'] == 'matrix') {
|
} elseif ($field['type'] == 'matrix') {
|
||||||
$field['value'] = str_replace(' | ', "\n", $this->getMatrixString($data[$field['id']]));
|
$field['value'] = str_replace(' | ', "\n", $this->getMatrixString($data[$field['id']]));
|
||||||
} elseif ($field['type'] == 'files') {
|
} elseif (in_array($field['type'], ['files', 'signature'])) {
|
||||||
if ($this->outputStringsOnly) {
|
if ($this->outputStringsOnly) {
|
||||||
$formId = $this->form->id;
|
$formId = $this->form->id;
|
||||||
$field['value'] = implode(
|
$field['value'] = implode(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue