verbb / hyper

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

Bug in validation after switching between types #170

Closed boboldehampsink closed 5 months ago

boboldehampsink commented 5 months ago

Describe the bug

I have an issue with Hyper where the field is saved as an URL. I then switch to Entry, select one and save. Then I switch back to URL and put in a new URL, and then this happens:

image

That validation error makes no sense. As you can see there is only one.

Steps to reproduce

  1. Save as URL
  2. Switch to Entry and save again
  3. Switch to URL and save again

Craft CMS version

5

Plugin version

2

Multi-site?

Yes

Additional context

In this case this is happening within a Matrix field. Haven't tested outside of matrix.

engram-design commented 5 months ago

I can't seem to replicate that. Can you let me know if you have a value for "Max Links" in the field settings? It's hidden under the "Enable Multiple Links" setting, which I know you have disabled, but there is a bug that it will use the min/max limit settings for non-multi link fields.

boboldehampsink commented 5 months ago

@engram-design yeah it has maxLinks: 1

engram-design commented 5 months ago

Gotcha, so I believe that should be fixed in 2.0.2