verbb / hyper

A Craft CMS plugin for managing links, focusing on user experience.
Other
22 stars 14 forks source link

Removing the native field linkText throws an error #164

Closed angelokeirsebilck closed 4 months ago

angelokeirsebilck commented 4 months ago

Describe the bug

I have a hyper link field where I only have URL as the available link type. Here i only want editors inserting URL's as these are social links.

Removing every native field except linkValue throws an error:

Invalid Argument – yii\base\InvalidArgumentException Invalid field: linkText

  1. in /var/www/html/vendor/craftcms/cms/src/models/FieldLayout.phpat line 513
  2. in /var/www/html/vendor/verbb/hyper/src/base/Link.php at line 440

Steps to reproduce

  1. Create hyper field
  2. Only select URL as the available link type
  3. Remove all native fields except linkValue
  4. Render the field

Craft CMS version

5.1.7

Plugin version

dev-craft-5

Multi-site?

No response

Additional context

No response

daafbleumink commented 4 months ago

I'm experiencing the same. Following this issue.

engram-design commented 4 months ago

Fixed for the next release. To get this early, run composer require verbb/hyper:"dev-craft-5 as 2.0.0".

engram-design commented 4 months ago

Fixed in 2.0.1