Skip to content

Commit 56f0d06

Browse files
fix category
1 parent c9bc1a9 commit 56f0d06

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

packages/category/src/Models/Category.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Category extends BaseDraftModel implements HasMedia
4545
use NodeTrait;
4646
use SoftDeletes;
4747
use InteractsWithMedia;
48-
public $incrementing = false;
48+
public $incrementing = true;
4949
protected $keyType = 'int';
5050

5151
public $translatedAttributes = [

packages/category/src/Moox/Entities/Categories/Category/CategoryResource.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ public static function form(Form $form): Form
9999
->disabledOptions(fn ($get): array => [$get('id')])
100100
->enableBranchNode()
101101
->visible(fn () => Category::count() > 0),
102-
KeyValue::make('basedata'),
103-
KeyValue::make('data'),
104-
KeyValue::make('data.ArticleGroup'),
105102

106103

107104
]),

packages/core/src/Entities/Items/Draft/Pages/BaseCreateDraft.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ protected function handleRecordCreation(array $data): Model
4141
// Fill and save the main record with non-translatable data
4242
$record->fill($nonTranslatableData);
4343
$record->save();
44-
4544
// Create the translation if the model supports translations
4645
/** @var Model $translation */
4746
$translation = $record->translations()->firstOrNew([

0 commit comments

Comments
 (0)