Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.4.13 DXP U57, Master
Description
According to a customer, this issue was already there in Liferay 6.2.
Steps to reproduce:
- In the Global site, create 3 document types (I've called them TYPE_A, TYPE_B and TYPE_C)
- Create a new site, let's call it Alpha
- In Alpha, create 3 documents using the 3 types we have created.
- In Alpha, create a new content page and add the Asset Publisher Widget
- Configure the Asset Publisher Widget:
-
- Asset Selection: Dynamic
- Source - Asset Type: Document
- Source - Document Type: Select More Than One...
- Source - Selected: TYPE_A and TYPE_B (we don't include TYPE_C)
- The Asset Publisher displays 2 out of the 3 documents we have created, this is expected.
- On the Alpha site, go to Publishing - Export and make a complete export of the site.
- Create a new site, let's call it Beta
- On the Beta site, go to Publishing - Import and import the Alpha exported lar
Expected result:
The Beta site page displays the 2 filtered documents.
The configuration of the Asset Publisher on the Beta page is the same as on Alpha.
Actual result:
The Beta site page displays the 2 filtered documents (the one of TYPE_C is not displayed, as expected).
However, if you go to the Asset Publisher configuration, it's wrong because you have;
- Asset Selection: Dynamic
- Source - Asset Type: Document
- Source - Document Type: Any
The filter on document type TYPE_A and TYPE_B is lost.
Consequences of the issue:
Let's imagine that someone goes to the Asset Publisher configuration in order to change something completely unrelated to asset selection rules (for example, they wish to change the freemarker template), they will unexpectedly change the asset selection rule.
Attachments
Issue Links
- is caused by
-
LPS-127772 Move code from asset/asset-publisher-web/src/main/resources/META-INF/resources/configuration/source.jsp
-
- Closed
-