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 11251f8 commit e0a887a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
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 e0a887a

Please sign in to comment.