Affects Version/s: 7.0.0 DXP SP1, 7.0.0 DXP SP2, Master
Customer is trying to write custom code based on the type settings field for the Layout table, but they noticed that the type settings are being stored inconsistently for portlets.
When adding a portlet to a column, the portlet ids are stored in comma separated form for each column, without a trailing comma. However, after a portlet is deleted, a trailing comma is added.
This is proving to be an issue for their developers, as they have multiple columns, and are not sure whether to code for a trailing comma, or not.
STEPS TO REPRODUCE
1) Create a page with default 2 30/70 column layout.
2) Add 3 portlets to each column on the page. Look at the type settings column in the database for that layout and notice that the portlets are comma separated, but do not have a trailing comma.
3) Delete one of the portlets in column 1. Look at the type settings column, and notice that there are now trailing commas.
4) Add a portlet to column 1. Notice that there is now no trailing comma for the column-1 ids.
Consistent behavior of commas/trailing commas after removing/adding portlets.
Can't reproduce in Master (build fails
/liferay-portal-ee/build.xml:282: The following error occurred while executing this line:
/liferay-portal-ee/build-common.xml:663: exec returned: 1)