moltam89/liferay-portal — pull request #334 by vilmospapp (2014-03-14 09:23:16+00:00)
Title:  [TECHNICAL SUPPORT] LPS-44722 Fix Remote Staging turn off problem with page versioning

Hi Tamás,

You've already reviewed this fix before, I had to fix a typo as for local staging it didn't work.

The main issue is that with page versioning enabled after turning off remote staging, not the latest published version of the stage site is kept. As I discussed with @KocsisDaniel the fix should take care of the data update from the head revisions back to the layouts. I've also added the page versioning turn off only fix, that will copy the head revisions back to layouts when page versioning is turned off on a staged group (both for local and remote staging).

I also checked the layout/layoutrevision methods for layout update.

Please review my fix and let me know if you have any concerns.