fix google sheet image url (#522)
This commit is contained in:
parent
fd9067b470
commit
0a94004926
|
|
@ -129,7 +129,7 @@ class SpreadsheetManager
|
|||
|
||||
public function buildRow(array $submissionData): array
|
||||
{
|
||||
$formatter = (new FormSubmissionFormatter($this->integration->form, $submissionData))->outputStringsOnly();
|
||||
$formatter = (new FormSubmissionFormatter($this->integration->form, $submissionData))->useSignedUrlForFiles()->outputStringsOnly();
|
||||
|
||||
$fields = $formatter->getFieldsWithValue();
|
||||
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ class FormSubmissionFormatter
|
|||
} else {
|
||||
$returnArray[$field['name']] = $val;
|
||||
}
|
||||
} elseif ($field['type'] == 'files') {
|
||||
} elseif (in_array($field['type'], ['files', 'signature'])) {
|
||||
if ($this->outputStringsOnly) {
|
||||
$formId = $this->form->id;
|
||||
$returnArray[$field['name']] = implode(
|
||||
|
|
@ -219,7 +219,7 @@ class FormSubmissionFormatter
|
|||
} else {
|
||||
$field['value'] = $val;
|
||||
}
|
||||
} elseif ($field['type'] == 'files') {
|
||||
} elseif (in_array($field['type'], ['files', 'signature'])) {
|
||||
if ($this->outputStringsOnly) {
|
||||
$formId = $this->form->id;
|
||||
$field['value'] = implode(
|
||||
|
|
|
|||
Loading…
Reference in New Issue