Skip to content

Commit d28cc02

Browse files
committed
add DefaultLabel if no label2_template is selected
1 parent 2d3514b commit d28cc02

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/Http/Requests/StoreLabelSettings.php

Lines changed: 6 additions & 0 deletions
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)