Uploaded image for project: 'Document Management System (closed)'
  1. Document Management System (closed)
  2. MGNLDMS-96

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Trivial Trivial
    • 1.x
    • 1.1, 1.1.1
    • None
    • Debian/VMware, Magnolia CE 3.0.2 bundle

      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").

        Acceptance criteria

              pbaerfuss Philipp Bärfuss
              todd Todd Farrell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: