Skip to content
This repository was archived by the owner on Jun 18, 2018. It is now read-only.
This repository was archived by the owner on Jun 18, 2018. It is now read-only.

Problems calling GetPropertyValue recursively on an empty property which previously had a value #38

@ProNotion

Description

@ProNotion

See this forum post where the issue was originally posted

If a value is set and subsequently removed when the node is then published it adds an empty cdata section in the cache file e.g.

<headerSlides><![CDATA[[]]]></headerSlides>

Unfortunately this means that recursive property lookups like this:

Model.GetPropertyValue<IEnumerable<IPublishedContent>>("headerSlides", true)

...result in the lookup stopping on the node with the now empty cdata section and not continuing up the tree until it really does find a node with a value on that property.

Pull request to follow.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions