Fix showing a correct category in a document.

This commit is contained in:
Pavel Mironchik 2021-01-12 20:43:02 +06:00
parent ff945c6e34
commit 8f1b343736

View File

@ -16,10 +16,10 @@
@stack('recurring_row_end')
@stack('more_row_start')
@if (!$hideCategory && !$hideAttachment)
@if (!$hideCategory || !$hideAttachment)
<div class="{{ $more_class }}">
@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
@if (!$hideAttachment)