core icon indicating copy to clipboard operation
core copied to clipboard

Missing tags on event content on calendar view

Open maurizo opened this issue 9 years ago • 3 comments

This is from a ticket. The event tags are not being displayed on the calendar view or using the view tool unless the content is loaded first using the content management portlet.

Expected Behavior

Tags should always show on the event view and using the view tool without extra steps.

Current Behavior

The contentlet management portlet uses the EditContentletAction._editWebAsset() here to load the tags and this "puts" tags into the cache. The calendar portlet and view tool does not have such code.

Possible Solution

The hotfix solution was to add the setTags() calls where needed. A more elegant and probably easier to maintain solution is to have this code called during the final "find" method on the contentlet API so every contentlet would load it tags upon being retrieved.

Known Workarounds

As described in the ticket the cache needs to be updated by loading the content on the management portlet.

Steps to Reproduce (for bugs)

As described on the ticket.

maurizo avatar Jan 27 '17 17:01 maurizo

PR: https://github.com/dotCMS/core/pull/10566

maurizo avatar Jan 27 '17 21:01 maurizo

PR: https://github.com/dotCMS/core/pull/11332

jgambarios avatar Apr 17 '17 19:04 jgambarios

Passed QA. Tags are showing in the event view and view tool

Event view and view tool image

Front end: image

Tested on master-4.1 / commit 6caf33e8f8ba46cdf1db336e500969febdee9ee0 Mac OS 10.10 / MySQL 5.6.35 / Firefox v45.0.1 / Tomcat 8 / Java 8

shaydotcms avatar Apr 18 '17 00:04 shaydotcms