From e0a887a370d47117d232536941a7c6576ea30948 Mon Sep 17 00:00:00 2001 From: Mat Fish Date: Wed, 31 Aug 2022 13:17:37 +0300 Subject: [PATCH] fix validation message --- CHANGELOG.md | 4 ++++ src/models/Settings.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cdf7f8c..e9f44cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Release Notes for Entry Meta +## 3.0.2 - 2022-08-31 +### Fixed +- Fixed validation message + ## 3.0.1 - 2022-08-31 ### Added - Cache enabled elements diff --git a/src/models/Settings.php b/src/models/Settings.php index 7f3194d..2be800a 100644 --- a/src/models/Settings.php +++ b/src/models/Settings.php @@ -25,9 +25,9 @@ public function rules() : array } if (!class_exists($val[1])) { - $this->addError($attr,"Active Record Class {$val[0]} does not exist"); + $this->addError($attr,"Active Record Class {$val[1]} does not exist"); } elseif (!is_subclass_of($val[1],ActiveRecord::class)) { - $this->addError($attr,"Class {$val[0]} is not an Active Record Class"); + $this->addError($attr,"Class {$val[1]} is not an Active Record Class"); } } }]