Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-21206

Add button in Documents & Media portlet doesn't display properly with one option


    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.1.0 CE RC1
    • Fix Version/s: --Sprint 12/11, 6.1.0 CE RC1
    • Component/s: Documents & Media
    • Labels:
    • Environment:
      Tomcat 7.0.22 + MySQL 5.5.15. 6.1.X Revision: 94208.


      When a user has permissions to add only shortcuts to the Documents and Media portlet, the "Add" button that usually provides a drop-down menu of available options is replaced by a simple link for adding shortcuts. This does not occur when a user's permissions are restricted to only add documents or only add folders, since these permissions make available two separate options, which is apparently what causes the Add drop-down to appear.

      To reproduce the issue:
      1.) Add a new user
      2.) Add a new role
      3.) Remove the Power User role from the new user
      3.) Define the new role as having permission to view the DM portlet, add shortcuts to it, and view it in the control panel
      4.) Assign the new role to the new user
      5.) Log in as the new user
      6.) Navigate to the DM control panel portlet

      Even if this is the intended functionality (i.e. only showing a link in lieu of using the Add menu when only one option is available), the link does not seem to be visually rendered to fit the aesthetics of the rest of the portlet (see attached screenshot).




            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created:
                Days since last comment:
                8 years, 43 weeks ago


                Version Package
                --Sprint 12/11
                6.1.0 CE RC1