verbb/hyper

Adding variant gives "Variant is missing its product" error

Closed this issue · 2 comments

Describe the bug

I have a hyper field where you can select variants. Whenever I select a variant I get the following error:

Screenshot 2024-03-21 at 16 55 51

I have my own macro that calls getLinkAttributes(). Seems like the error is coming from there.
My hyper field also resides inside a static supertable.

Screenshot 2024-03-21 at 16 56 15

Steps to reproduce

  1. Create hyper field with variants enabled
  2. Select variant and save
  3. Error displays

Craft CMS version

4.8.4

Plugin version

1.1.22

Multi-site?

Yes

Additional context

Supertable is installed

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