Skip to content

Commit

Permalink
fix: editions fields
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Jun 14, 2024
1 parent 3fba6ec commit df9c546
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Filament/Resources/EditionsResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static function form(Form $form): Form
->maxFiles(1)
->columnSpanFull(),

Select::make('rule_page')
Select::make('page_id')
->relationship('page', 'title')
->label(__('edition.labels.rule_page'))
->preload()
Expand Down
2 changes: 2 additions & 0 deletions app/Models/Edition.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class Edition extends Model implements HasMedia
'short_description',
'start_date',
'end_date',
'page_id',
'article_category_id',
];

public function editionCategories(): HasMany
Expand Down

0 comments on commit df9c546

Please sign in to comment.