-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: Master
-
Fix Version/s: 7.3.X, 7.4.0 CE GA1, 7.4.13 DXP GA1, Master
-
Component/s: Content Display Widgets > Web Content Display widget
-
Branch Version/s:7.3.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
Reproduction steps
1) Create a new Web Content Structure with a Text Box field
2) Create a new Web Content Template for the new Structure and add a following script to the template source
<@liferay_aui.script use="aui-base"> console.log('My template is processed!'); </@liferay_aui.script>
3) Uncheck Cacheable
4) Create a new Web Content based on the new Structure
5) Create a new Widget Page
6) Add a Web Content Display
7) On the Web Content Display - Configuration Select a Web Content
Notice: When opening the Select Web Content modal the browser's console will print:
My template is processed!
Expected: No log in the browser's console
Analysis
The asset-browser-web is used to list the Web Contents in the search-container.
In the search-container the Description column loads the getSummary from the JournalArticleAssetRenderer where the summary is the articleDisplay.getContent().
Related PTR-2329
Suggested solution: https://issues.liferay.com/browse/PTR-2329?focusedCommentId=2413704&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-2413704