Details

    • Type: Service Pack Request
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 4.2, 5.0, 5.1
    • Fix Version/s: 5.0.5
    • Labels:
    • Environment:
      Tested in Chrome and IE 11 against Alfresco 4.2.f, 5.0.d and community EA 201512.
      Windows 10, Windows Server 2012

      Description

      When using the authority.ftl form control in a search form, the layout is rendered all wrong.

      Expected Behavior
      Layout should be a normal association selection box with a search field on the top and two boxes side-by-side underneath. The left box should have the search results and the right box should contain the selected users.

      Observed Behavior
      See attached screenshot.

      Reproduce
      1. Define a type or aspect with a person association:

      <association name="my:userProp">
          <title>My user property</title>
          <source>
              <mandatory>false</mandatory>
              <many>true</many>
          </source>
          <target>
              <class>cm:person</class>
      	<mandatory>false</mandatory>
      	<many>false</many>
          </target>
      </association>
      

      2. Define a search form for this type, include the field
      3. Optionally declare for the field to use the authority.ftl form control

      <field id="my:userProp" set="myset">
          <control template="/org/alfresco/components/form/controls/authority.ftl">
             <!-- These make no difference at all -->
              <control-param name="compactMode">true</control-param>
              <control-param name="forceEditable">true</control-param>
          </control>
      </field>
      

      4. Deploy to Share and open the custom search form.

        Attachments

        1. customModel.xml
          2 kB
        2. custom-model-context.xml
          0.5 kB
        3. layout.PNG
          layout.PNG
          15 kB
        4. share-config-custom.xml
          28 kB

          Structure

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs (Inactive)
                Reporter:
                MTielemans Mark Tielemans (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours
                  5h

                    Structure Helper Panel