Skip to content

Commit 0eb3f6b

Browse files
Godmartinzsnipe
authored andcommitted
set max to 5
1 parent 68b0f80 commit 0eb3f6b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/Http/Controllers/SettingsController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,6 @@ public function getLabels() : View
750750
return view('settings.labels')
751751
->with('setting', Setting::getSettings())
752752
->with('is_gd_installed', $is_gd_installed)
753-
->with('template', LabelModel::find(Setting::getSettings()->label2_template))
754753
->with('customFields', CustomField::where('field_encrypted', '=', 0)->get());
755754
}
756755

resources/views/settings/labels.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ class="form-control col-md-2"
326326
type="number"
327327
id="label2_empty_row_count"
328328
min="0"
329-
max="{{ $template->getSupportFields() }}"
329+
max="5"
330330
value="{{ old('label2_empty_row_count', $setting->label2_empty_row_count) }}"
331331
>
332332
{!! $errors->first('label2_empty_row_count', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}

0 commit comments

Comments
 (0)