Skip to content

Commit

Permalink
Merge branch 'craft-4' of https://github.com/verbb/hyper into craft-5
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
#	composer.json
#	src/base/Link.php
#	src/migrations/MigrateTypedLinkField.php
  • Loading branch information
engram-design committed Sep 7, 2024
2 parents 28c1946 + 93279ba commit 945c01b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@
### Removed
- Remove migrations for other plugin (not supported in Craft 5).

## 1.2.2 - 2024-09-07

### Added
- Add extra error logging for Matrix and Super Table fields for Typed Link field migration.
- Add “safe” attributes for various link properties to allow `setAttributes` correctly.
- Add `linkUri` to the GraphQL `LinkInterface` class.

## 1.2.1 - 2024-08-08

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions src/base/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,8 @@ protected function defineRules(): array
{
$rules = parent::defineRules();

$rules[] = [['label', 'handle', 'enabled', 'newWindow', 'linkValue', 'linkText', 'ariaLabel', 'urlSuffix', 'linkTitle', 'classes', 'customAttributes'], 'safe'];

// Validation for only when saving Hyper fields and their settings
$rules[] = [['label', 'handle'], 'required', 'on' => [self::SCENARIO_SETTINGS]];

Expand Down

0 comments on commit 945c01b

Please sign in to comment.