Copied to clipboard

Flag this post as spam?

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


  • Robert Hertel 1 post 71 karma points
    May 10, 2016 @ 11:24
    Robert Hertel
    0

    IsPropertyDirty is always true for numeric field

    I have a document type that has property1 of type textstring and property2 of type numeric.

    When in my Saving Event I do an IsPropertyDirty on the textstring property it returns 'true' when the value has changed and 'false' when it hasn't.

    if (contentItem.IsPropertyDirty("property1"))
    {
        LogHelper.Info(typeof(UpdateRonde), "Value has changed");
    }
    else
    {
        LogHelper.Info(typeof(UpdateRonde), "Value still the same");
    }
    

    When I do the IsPropertyDirty on the numeric property it always returns 'true', even if I don't change the value. Is that a bug?

    I'm using Umbraco 7.3.8.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies