[
http://jira.magnolia-cms.com/browse/MGNLSTK-768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zdenek Skodik updated MGNLSTK-768:
----------------------------------
Assignee: Ondřej Chytil (was: Zdenek Skodik)
Fix Version/s: 1.4.4
Affects Version/s: 1.4.3
Component/s: paragraphs
> stkDownloadList paragraph is empty when configured with single document and
> file extension.
> -------------------------------------------------------------------------------------------
>
> Key: MGNLSTK-768
> URL: http://jira.magnolia-cms.com/browse/MGNLSTK-768
> Project: Magnolia Standard Templating Kit
> Issue Type: Bug
> Components: paragraphs
> Affects Versions: 1.4.3
> Reporter: Rory Gibson
> Assignee: Ondřej Chytil
> Fix For: 1.4.4
>
>
> Steps to reproduce:
> * add download list paragraph to a page.
> * edit paragraph configuration
> ** set document link = /openwfe/openwfe-technical-presentation
> ** set file extension = pdf
> * save dialog
> Expected result - dialog list displays {{openwfe technical presentation (PDF,
> 174 KB)}}
> Actual result - dialog list is empty
> After some investigation it appears that the issue is in
> DownloadListModel::116.
> Changing
> {code}
> if(node.getItemType().equals(ItemType.CONTENT)){
> expressions.add("jcr:path like '" + link + "/%'");
> }
> else if(Document.isDocument(node)){
> expressions.add("jcr:path like '" + link + "'");
> }
> {code}
> to just (i.e. removing the if/else condition)
> {code}
> expressions.add("jcr:path like '" + link + "/%'");
> {code}
> seems to resolve the issue.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------