Merge pull request #1751 from pavel-mironchik/category

Fix showing a correct category in a document.
This commit is contained in:
Cüneyt Şentürk 2021-01-12 17:45:04 +03:00 committed by GitHub
commit fffab4108e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,10 +16,10 @@
@stack('recurring_row_end') @stack('recurring_row_end')
@stack('more_row_start') @stack('more_row_start')
@if (!$hideCategory && !$hideAttachment) @if (!$hideCategory || !$hideAttachment)
<div class="{{ $more_class }}"> <div class="{{ $more_class }}">
@if (!$hideCategory) @if (!$hideCategory)
{{ Form::selectRemoteAddNewGroup('category_id', trans_choice('general.categories', 1), 'folder', $categories, setting('default.' . $categoryType . '_category'), ['required' => 'required', 'path' => route('modals.categories.create') . '?type=' . $categoryType, 'remote_action' => route('categories.index'). '?type=' . $categoryType], $more_form_class) }} {{ Form::selectRemoteAddNewGroup('category_id', trans_choice('general.categories', 1), 'folder', $categories, $document->category_id ?? setting('default.' . $categoryType . '_category'), ['required' => 'required', 'path' => route('modals.categories.create') . '?type=' . $categoryType, 'remote_action' => route('categories.index'). '?type=' . $categoryType], $more_form_class) }}
@endif @endif
@if (!$hideAttachment) @if (!$hideAttachment)