Category form issue solved..

This commit is contained in:
Cüneyt Şentürk 2022-06-03 14:28:16 +03:00
parent e85d27898c
commit ffd489b252
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@
<x-form.group.select name="parent_id" label="{{ trans('general.parent') . ' ' . trans_choice('general.categories', 1) }}" :options="[]" not-required dynamicOptions="categoriesBasedTypes" sort-options="false" disabled="isParentCategoryDisabled" /> <x-form.group.select name="parent_id" label="{{ trans('general.parent') . ' ' . trans_choice('general.categories', 1) }}" :options="[]" not-required dynamicOptions="categoriesBasedTypes" sort-options="false" disabled="isParentCategoryDisabled" />
<x-form.input.hidden name="categories" :value="json_encode($categories)" /> <x-form.input.hidden name="categories" value="{{ json_encode($categories) }}" />
</x-slot> </x-slot>
</x-form.section> </x-form.section>

View File

@ -26,7 +26,7 @@
<x-form.group.select name="parent_id" label="{{ trans('general.parent') . ' ' . trans_choice('general.categories', 1) }}" :options="$categories[$category->type]" not-required dynamicOptions="categoriesBasedTypes" sort-options="false" /> <x-form.group.select name="parent_id" label="{{ trans('general.parent') . ' ' . trans_choice('general.categories', 1) }}" :options="$categories[$category->type]" not-required dynamicOptions="categoriesBasedTypes" sort-options="false" />
<x-form.input.hidden name="categories" :value="json_encode($categories)" /> <x-form.input.hidden name="categories" value="{{ json_encode($categories) }}" />
<x-form.input.hidden name="parent_category_id" :value="$category->parent_id" /> <x-form.input.hidden name="parent_category_id" :value="$category->parent_id" />
</x-slot> </x-slot>
</x-form.section> </x-form.section>