Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lars-Erik Aabech 350 posts 1102 karma points MVP 8x c-trib
    Mar 11, 2021 @ 15:22
    Lars-Erik Aabech
    0

    Custom property value converter apparently not called when UMS is installed

    Hi,

    I have a weird issue where a custom property value converter is supposed to provide a value if the stored value is null. When I install UMS, the value converter isn't called anymore for empty properties. (The whole point of the converter)
    It goes for both intermediate and runtime conversion.

    Also, this does not seem to happen on another site running 1.6.0. This site is running 1.7.2.

    Ideas?

    Lars-Erik

  • Wouter van der Beek 20 posts 282 karma points
    Mar 12, 2021 @ 14:17
    Wouter van der Beek
    1

    Hi Lars-Erik,

    This bug was caused by the uMarketingSuite's implementation for property value fallback values. The problem appears when the property is empty (not set), causing the resulting property's value to be NULL instead of the expected default value (from the property value converter).

    TLDR: The bug has been fixed in uMarketingSuite version 1.7.3, and I recommend upgrading to resolve this issue.

    Long story: Umbraco employs fallback strategy in the case of an empty property, to try and return a value. The uMarketingSuite hooks into this proces for the purposes of returning non-segmented property values for empty segmented properties. This is the case when you are personalizing your content page - a segment (variant) gets created for your content page. If you leave a property empty in your personalized segment, we simply return the original (non-segmented) property.

    When there is no segment in play, the uMarketingSuite defers to Umbraco's (built in) strategy to resolve the property's fallback value. This last part is where the bug was located: the call to Umbraco caused the property value to be returned as NULL. The bugfix addresses the way we invoke Umbraco's property value fallback, causing the property value converters to get called again.

Please Sign in or register to post replies

Write your reply to:

Draft