From 472d987be398961f56761bb9f160cc2237093fcd Mon Sep 17 00:00:00 2001 From: Mat Fish Date: Wed, 31 Aug 2022 13:20:06 +0300 Subject: [PATCH] fix validation message --- CHANGELOG.md | 6 +++++- src/models/Settings.php | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 52e5fe6..77b4b7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Release Notes for Entry Meta +## 1.1.2 - 2022-08-31 +- Fix validation message + ## 1.1.1 - 2022-08-31 +> {note} Breaking Change. See README for quick migration ### Added - Craft 3: Extend functionality to allow for all element types @@ -8,8 +12,8 @@ ### Added - Cache enabled elements -> {note} Breaking Change. See README for quick migration ## 3.0.0 - 2022-08-31 +> {note} Breaking Change. See README for quick migration ### Added - Craft 4: Extend functionality to allow for all element types [#3](https://github.com/matfish2/craft-entry-meta/issues/3) diff --git a/src/models/Settings.php b/src/models/Settings.php index 225c15d..ca2d9ad 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"); } } }]