sample DMS paragraph filters on 'extension' instead of 'type'
-------------------------------------------------------------

                 Key: MGNLDMS-96
                 URL: http://jira.magnolia.info/browse/MGNLDMS-96
             Project: Magnolia DMS
          Issue Type: Bug
    Affects Versions: 1.1, 1.1.2
         Environment: Debian/VMware, Magnolia CE 3.0.2 bundle 
            Reporter: Todd Farrell
         Assigned To: Philipp Bracher
            Priority: Trivial


Please excuse me if this is not a bug; I may just not understand the DMS 
correctly :-)

In 
modules/community/magnolia-module-dms/trunk/src/main/resources/mgnl-files/templates/dms/paragraphs/dms.jsp:

    // search on file type
    if(StringUtils.isNotEmpty(extension)){
        expressions.add("extension = '" + extension + "'");
    }

I needed to change this to query based on the "type" attribute for it to work 
when specifying a particular extension (e.g. "pdf").

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------

Reply via email to