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