Skip to content

Commit

Permalink
fix validation message
Browse files Browse the repository at this point in the history
  • Loading branch information
matfish3 committed Aug 31, 2022
1 parent 317cdf8 commit 472d987
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# 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

## 3.0.1 - 2022-08-31
### 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)

Expand Down
4 changes: 2 additions & 2 deletions src/models/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
}]
Expand Down

0 comments on commit 472d987

Please sign in to comment.