Skip to content

Commit

Permalink
Fix logic for detecting seoable models
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers committed Jul 31, 2023
1 parent 909151f commit 8b0b25c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,11 @@ protected function extendBackendForms(): void
$widget->isNested
|| (
method_exists($widget->model, 'isClassExtendedWith')
&& !$widget->model->isClassExtendedWith(SeoableModel::class)
&& (
!$widget->model->isClassExtendedWith(SeoableModel::class)
|| !$widget->model->seoableInjectSeoFields
)
)
|| !$widget->model->seoableInjectSeoFields
) {
return;
}
Expand Down

0 comments on commit 8b0b25c

Please sign in to comment.