Closed aaronbushnell closed 3 months ago
Thanks for the concise steps, Aaron! v2.0.1 is out now with a fix for this issue. Link fields now fail more gracefully (as in, without a PHP error) when the related element can't be found. Under the hood, the url
property will now be null
in those instances.
Visiting the entry in the control panel will highlight the invalid reference just like Statamic would on a regular entries/assets/terms field, and let authors clean up the relationship.
No problem, thanks so much @bencarr!
I noticed that if I:
That my "Home" entry throws an error on the front-end and back-end. It reads:
I presume it's because the data still is trying to read a URL from an entry that no longer exists. Could a condition wrap this so that this error doesn't occur and so that the Hyperlink field removes this data on the next save of the source entry?