Copied to clipboard

Flag this post as spam?

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


  • shinsuke nakayama 109 posts 250 karma points
    Oct 09, 2014 @ 01:54
    shinsuke nakayama
    0

    Archetype Boolean value not converting

    Hi Andy,

    I just noticed that the boolean value in the Archtype object is not converting. If i have a value type of "true/false" in the archetype. the data get stored as "0" or "1".

    The String value "1" can't convert it to true.

    Have you had this issue?

    Cheers

    shinsuke

  • Andy Butland 422 posts 2334 karma points MVP 4x hq c-trib
    Oct 09, 2014 @ 10:02
    Andy Butland
    0

    I haven't come across that Shinsuke but sounds like it should be a simple fix to check for "truthy" string values when converting to a boolean in your mapping. I'll take a look this evening and assuming it is straightforward release an update.

    Andy

  • Andy Butland 422 posts 2334 karma points MVP 4x hq c-trib
    Oct 09, 2014 @ 20:56
    Andy Butland
    100

    The latest version on GitHub and NuGet should handle this now Shinsuke (version 1.4.11) - I'll update the package on our too shortly.

    Andy

  • shinsuke nakayama 109 posts 250 karma points
    Oct 10, 2014 @ 01:27
    shinsuke nakayama
    0

    Hi Andy,

    Yes i was updating manually in the mapper but i thought it make sense to convert it in the Umbraco Mapper.

    Thank you for the update, that worked perfectly.

    Cheers

    Shinsuke

Please Sign in or register to post replies

Write your reply to:

Draft