This project is read-only.
1
Vote

double log history problem

description

I followed the steps to recompile and install the policy in vs2012, all work fine, but there's a big issue.

Every time change a file content and then refresh the "Pending Changes" page (just switch back from other pages), it will execute the IPolicyEvaluation again, in which if there's no comment, it works fine; if there's comment, the code will jump to the FillCommentInSourceFile(proposedComment, pc.LocalItem, pc) to write info into the file; a pop window says that the file is changed out of editor, reload it?. When checkin, it will execute the IPolicyEvaluation another time, then the same info (except for Date) will be write into the file again! How many times does the Pending Changes Page refresh, there will same numbers of same change info into the file! It doesn't work, even click NO when refresh back.

Try to use the CurrentCommand to judge only if it's CheckIn command, then run the FillCommentInSourceFile, but the return command is empty. Donna how to do.

comments