Merge pull request #1751 from pavel-mironchik/category
Fix showing a correct category in a document.
This commit is contained in:
commit
fffab4108e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user