1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-01-18 05:38:40 +01:00

Fix a small issue with category selects in link forms

This commit is contained in:
Kovah 2019-04-26 18:42:55 +02:00
parent cf2bc5b9f4
commit 49cb6e2b1f
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B

View File

@ -57,7 +57,7 @@
class="{{ $errors->has('category_id') ? ' is-invalid' : '' }}">
<option value="0">@lang('category.select_category')</option>
@foreach($categories as $category)
@if($category->childCategories)
@if($category->childCategories->count() > 0)
<optgroup label="{{ $category->name }}">
<option value="{{ $category->id }}">
{{ $category->name }}