diff --git a/modules/backend/formwidgets/RecordFinder.php b/modules/backend/formwidgets/RecordFinder.php index 3e94b77fb..9d4e84040 100644 --- a/modules/backend/formwidgets/RecordFinder.php +++ b/modules/backend/formwidgets/RecordFinder.php @@ -95,7 +95,7 @@ class RecordFinder extends FormWidgetBase if (!$this->model->hasRelation($this->relationName)) { throw new SystemException(Lang::get('backend::lang.model.missing_relation', [ - 'class' => get_class($this->controller), + 'class' => get_class($this->model), 'relation' => $this->relationName ])); }