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".
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.
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
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
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
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
is working on a reply...