Skip to content

Commit 5da492c

Browse files
committed
set max to 5
1 parent d871c52 commit 5da492c

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
@@ -751,7 +751,6 @@ public function getLabels() : View
751751
return view('settings.labels')
752752
->with('setting', Setting::getSettings())
753753
->with('is_gd_installed', $is_gd_installed)
754-
->with('template', LabelModel::find(Setting::getSettings()->label2_template))
755754
->with('customFields', CustomField::where('field_encrypted', '=', 0)->get());
756755
}
757756

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)