ealonso/liferay-portal — pull request #111 by KocsisDaniel (2013-12-02 10:34:02+00:00)
Title: LPS-41820

Hey Eudaldo,

finally I had time to do it so it is ready now. I did not change the manual system event add call at the end of the WPLSI.deletePage but if you don't need this manual add because the resource uuid is not that important, you can use the send = true (default) and delete this add call, the result will be equivalent.

The problem was that the version pages contains the actual page itself and the deleteAsset call for them adds the same system event as the deletePage, however because of some wiki page specific logic (I haven't spent so much time on it) the asset entry does not always exits when deleting the version page, so the event is not always added, so it is not reliable. That is why I decided to suppress this add and relies on the deletePage only. I also fixed the delete calls at some places, and since the update status deletes the draft asset entry I also suppressed the system event creation, because it is not necessary there.

thanks,
Daniel