Skip to content

Commit

Permalink
Update PageResource.php
Browse files Browse the repository at this point in the history
I believe this was pointed to the wrong model.  The page resource was not showing pages to chose from for the parent page.  Changing to the Post model instead of PostStatus fixes this.
  • Loading branch information
HeartlandTechie authored Feb 18, 2024
1 parent 4f1377c commit 80cc834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filament/Resources/PageResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public static function form(Form $form): Form
->label(__('Post Slug')),

Select::make('parent_id')
->options(SkyPlugin::get()->getModel('PostStatus')::where('post_type', 'page')->pluck(
->options(SkyPlugin::get()->getModel('Post')::where('post_type', 'page')->pluck(
'title',
'id'
))
Expand Down

0 comments on commit 80cc834

Please sign in to comment.