hhuijser/liferay-portal — pull request #1446 by ericmin (2013-06-29 00:14:16+00:00)
Title: LPS-37191 Involve workflow for change parent on wiki page

Hi Hugo,

The changes in WikiPageLocalServiceImpl class in because I involve the workflow for change parent and after updatePage() in changeParent() we have the following:

for (WikiPage oldPage : oldPages) {
oldPage.setParentTitle(originalParentTitle);

wikiPagePersistence.update(oldPage);
}

As the oldPages will fetch all the pages which head is 0 so it is also include the changed parent page as the status is not approved. You know that change parent will find the originalParentTitle and before change parent it is blank. So that is why I add that check to escape to reset the originalParentTitle. I thing above code should apply to the pages which version is lower than page.

Thanks,
-Eric