Copied to clipboard

Flag this post as spam?

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


  • Marc Love (uSkinned.net) 447 posts 1789 karma points
    Feb 15, 2022 @ 09:55
    Marc Love (uSkinned.net)
    0

    Contentservice ContentSavingNotification, how do you access values being saved.

    I am trying access the value of a content item before the item is saved. I am using ContentSavingNotification however IContent contains the previous state before any changes have been made so I cannot detect a change that shouldn't happen and then cancel the saving event.

    This is what I have in V9

    public void Handle(ContentSavingNotification notification)
    {
           foreach (var content in notification.SavedEntities)
           {
                //content is giving me the previous values before any changes.
           }
    }
    

    Does anyone know how I can access the values that are about to be saved so that I can determine if I want to allow the save event to complete or not?

  • Marc Love (uSkinned.net) 447 posts 1789 karma points
    Feb 28, 2022 @ 13:58
    Marc Love (uSkinned.net)
    0

    Update to this issue. HQ have confirmed that this is an issue with Umbraco 9.3.1

    See issue here

Please Sign in or register to post replies

Write your reply to:

Draft