Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    Jul 20, 2012 @ 15:32
    Anthony Candaele
    0

    problem HasPendingChanges method

    Hi,

    For an approval scenario I need to check if a document in the content tree was 'saved and published', therefore I load the document like this:

    Document doc = new Document(selectedJobId);

    and then I call the HasPendingChanges() method like this:

    if (doc.HasPendingChanges())

    The problem: This works if a document has been added and 'saved and published', but when the document has been edited by a member and approved by the administrator, the doc.HasPendingChanges() method keeps evaluating to true, although the document has been "saved and published" by the administrator.

    Is anyone familiar with this?

    How can I solve this?

    Thanks for your help,

    Anthony

Please Sign in or register to post replies

Write your reply to:

Draft