matthewkong/liferay-portal — pull request #216 by HSchueler (2013-05-07 22:08:12+00:00)
Title: LPS-34791

Hey Matt,

This time I changed deletepage,movepagetotrash/restorepagefromtrash to all use findbyN_P, with checks in place to make sure it doesn't actually move pages which are not approved. I think this route works the best, even though most of the other findby's are by head this way resolves the original issue and any other issues including kaleo (which I tested with to make sure) without running any extra queries for both approved and non-approved pages (like deletepages).