[TECHNICAL-SUPPORT] LPS-36710 User unable to create Site Public pages from Site Template when Staging is enabled for Private pages 

Hi Tamás,

This is the same PR I've already sent you and you forwarded to https://github.com/matethurzo/liferay-portal/pull/550. It was closed by @matethurzo as you mentioned that it could cause a regression. As I verified that the mentioned behaviour exists without my fix, and the original issue still persist, I resend the pr for you.
There were no changes in the code level, I just rebased it and ran format source against it.

Regards,
Vilmos