From 78fb9fb110c18a6cc28cf12460a7b905cd03e0f8 Mon Sep 17 00:00:00 2001 From: Chris Harvey Date: Wed, 10 Dec 2014 11:34:05 +0000 Subject: [PATCH] Correcting class name for missing relation exception --- modules/backend/formwidgets/Relation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/backend/formwidgets/Relation.php b/modules/backend/formwidgets/Relation.php index c5ece5ad3..16c576ff1 100644 --- a/modules/backend/formwidgets/Relation.php +++ b/modules/backend/formwidgets/Relation.php @@ -73,7 +73,7 @@ class Relation extends FormWidgetBase if (!$this->model->hasRelation($this->relationName)) { throw new SystemException(Lang::get( 'backend::lang.model.missing_relation', - ['class'=>get_class($this->controller), 'relation'=>$this->relationName] + ['class'=>get_class($this->model), 'relation'=>$this->relationName] )); } }