Copied to clipboard

Flag this post as spam?

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


  • Mark Bowser 273 posts 860 karma points c-trib
    Jan 15, 2016 @ 00:04
    Mark Bowser
    0

    Backoffice nodes are $dirty on load resulting in incorrect "You have unsaved changes" notifications

    I'm currently looking into this for a client on an umbraco 7.2.8 site, but I'm pretty sure I can reproduce it on any umbraco 7 site.

    Steps to reproduce:

    1. Log in to the umbraco backoffice and find some nodes in the content tree
    2. switch back and forth between a couple of nodes until you get a "You have unsaved changes. Are you sure you want to navigate away from this page?"

    I'm wondering if anyone else has put thought into how to resolve this problem or if they have any insight into why umbraco works that way right now. I could probably hack umbraco to not display the "You have unsaved changes" notification, but I am worried that the properties load with $dirty=true on purpose, and I don't want to try to fix this without knowing the bigger picture.

    If anyone wants to take a look, the most relevant piece of code I've found lives at /umbraco/js/umbraco.directives.js in the valFormManager directive.

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft