Skip to content

Commit 0a94004

Browse files
fix google sheet image url (#522)
1 parent fd9067b commit 0a94004

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/Integrations/Google/Sheets/SpreadsheetManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ protected function setHeaders(string $id, array $headers): static
129129

130130
public function buildRow(array $submissionData): array
131131
{
132-
$formatter = (new FormSubmissionFormatter($this->integration->form, $submissionData))->outputStringsOnly();
132+
$formatter = (new FormSubmissionFormatter($this->integration->form, $submissionData))->useSignedUrlForFiles()->outputStringsOnly();
133133

134134
$fields = $formatter->getFieldsWithValue();
135135

app/Service/Forms/FormSubmissionFormatter.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function getCleanKeyValue()
145145
} else {
146146
$returnArray[$field['name']] = $val;
147147
}
148-
} elseif ($field['type'] == 'files') {
148+
} elseif (in_array($field['type'], ['files', 'signature'])) {
149149
if ($this->outputStringsOnly) {
150150
$formId = $this->form->id;
151151
$returnArray[$field['name']] = implode(
@@ -219,7 +219,7 @@ public function getFieldsWithValue()
219219
} else {
220220
$field['value'] = $val;
221221
}
222-
} elseif ($field['type'] == 'files') {
222+
} elseif (in_array($field['type'], ['files', 'signature'])) {
223223
if ($this->outputStringsOnly) {
224224
$formId = $this->form->id;
225225
$field['value'] = implode(

0 commit comments

Comments
 (0)