From df9c546fd8a0e1090b29e125b768b5d456ffad00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Fri, 14 Jun 2024 16:19:22 +0100 Subject: [PATCH] fix: editions fields --- app/Filament/Resources/EditionsResource.php | 2 +- app/Models/Edition.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Filament/Resources/EditionsResource.php b/app/Filament/Resources/EditionsResource.php index c4e7e0cc..218abb7c 100644 --- a/app/Filament/Resources/EditionsResource.php +++ b/app/Filament/Resources/EditionsResource.php @@ -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() diff --git a/app/Models/Edition.php b/app/Models/Edition.php index ec06e7d5..f5853a03 100644 --- a/app/Models/Edition.php +++ b/app/Models/Edition.php @@ -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