Skip to content

Commit 382414d

Browse files
authored
Merge pull request #16559 from Godmartinz/StoreLabelSettings_fix
Fix Form save error when using old label engine
2 parents 6846c7d + d28cc02 commit 382414d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/Http/Requests/StoreLabelSettings.php

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ public function rules(): array
2929
return $label->getName();
3030
})->values()->toArray();
3131

32+
if (empty($this->input('label2_template'))) {
33+
$this->merge([
34+
'label2_template' => 'DefaultLabel',
35+
]);
36+
}
37+
3238
return [
3339
'labels_per_page' => 'numeric',
3440
'labels_width' => 'numeric',

0 commit comments

Comments
 (0)