Skip to content

Commit dedc21b

Browse files
committed
fix: use limit function for file label name
1 parent 3231642 commit dedc21b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Service/Forms/FormSubmissionFormatter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public function getFieldsWithValue()
196196
'open.forms.submissions.file',
197197
[$formId, $file]
198198
),
199-
"label" => \Str::substr($file, 0, 20) . '[...].' . end($splitText)
199+
"label" => \Str::limit($file, 20, '[...].'.end($splitText))
200200
];
201201
})->toArray();
202202
} else {

0 commit comments

Comments
 (0)