Skip to content

Commit 7dcdd06

Browse files
committed
Fixed category item form display issue
1 parent d0f0002 commit 7dcdd06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/Grid/Admin/CategoryItemGrid.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public function columns()
6565
'label' => __('Parent Item'),
6666
'selected' => $this->model->parent_id ?? null,
6767
'empty_value' => '-ROOT-',
68+
'hide' => $this->addtional['type']->is_flat ? true : false,
6869
'help_block' => [
6970
'text' => 'The maximum depth for a link and all its children is fixed. Some type links may not be available as parents if selecting them would exceed this limit.',
7071
],
@@ -79,6 +80,7 @@ public function columns()
7980
'type' => 'number',
8081
'wrapper' => ['class' => 'form-control py-2 w-40'],
8182
'label' => __('Weight'),
83+
'hide' => $this->addtional['type']->is_flat ? true : false,
8284
];
8385
},
8486
],

0 commit comments

Comments
 (0)