4.4.2: hotfix for infinite loops caused by _parent #4588
boutell
announced in
Release Notes
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In response to a report from a customer, we've released a hotfix for an issue introduced in version 4.4.0. Beginning with version 4.4.0, pieces have a
_parentvirtual property which complements_parentUrland provides additional information. This is a useful feature that makes it possible to render breadcrumb trails for pieces in search results. However, it also makes it possible for infinite loops to occur if a piece page is connected to a piece via a relationship field.In version
4.4.2ofapostrophe, this was resolved by introducing thepruneParentmethod, which limits the properties of_parentto a tidy subset suitable for displaying breadcrumb navigation and the like. The method can be extended if you wish to have access to more information about the piece page.Beta Was this translation helpful? Give feedback.
All reactions