JorgeFerrer/liferay-portal — pull request #78 by KocsisDaniel (2012-10-08 13:40:38+00:00)
Title: LPS-28982 Disable add record when staging 

Hi Jorge,

as we agreed I am sending the first PR regarding to the ddlRecord staging. In this code I disable to add new records when staging is active for the site and the portlet as well. I used the existing editable flag to control the visibility of the add button. I also put some code into the action to prevent the request hacking, but if you think it is not necessary please feel free to remove. I use the scopegroup and the isStagingGroup, isStagedPortlet conditions to make the decision whether the portlet is staged or not and I also made some centralization in the DDL portlet jsp's regarding to the editable field handling to make the code simpler.

Thanks,
Daniel