Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-11660

Share textarea.ftl appears even when the aspect of the property is not applied

    Details

      Description

      This issue seems to only happen to text areas in Share and is reproduced on both folders and contents.

      [Steps]
      1. Copy the entire section of <config evaluator="node-type" condition="cm:folder"> from share-form-config.xml to share-config-custom.xml.
      2. Add some properties of any aspect to the <field-visibility> section. In this example, I just used cm:dublincore.
      3. Under the <appearance> section, I've created a <set> and assigned a property to textarea.ftl and another property to something else, say, a text field.
      4. Start Alfresco and Share
      5. Log into Share, create a folder and click on "View Details" to view the details of the folder.

      [Expected result]
      Since the aspect cm:dublincore has not yet been applied to the folder, Share shouldn't show any properties under cm:dublincore on both the Preview page and Edit Metadata page.

      [Actual result]
      All properties with textarea.ftl are shown on both Preview and Edit Metadata page in Share. All other properties are still hidden.

      The example mentioned is here, which you can copy to reproduce if you like:

         <!-- cm:folder type (existing nodes) -->
         <config evaluator="node-type" condition="cm:folder" replace="true">
            <forms>
               <!-- Default form configuration for the cm:folder type -->
               <form>
                  <field-visibility>
                     <show id="cm:name" />
                     <show id="cm:title" force="true" />
                     <show id="cm:description" force="true" />
      
                     <!-- cm:dublincore aspect -->
                     <show id="cm:publisher"/>
                     <show id="cm:contributor"/>
                     <show id="cm:type"/>
                     <show id="cm:identifier"/>
                     <show id="cm:dcsource"/>
                     <show id="cm:coverage"/>
                     <show id="cm:rights"/>
                     <show id="cm:subject"/>
      			   
                     <!-- tags and categories -->
                     <show id="cm:taggable" for-mode="edit" force="true" />
                     <show id="cm:categories" />
      
                     <!-- emailserver:aliasable aspect -->
                     <show id="emailserver:alias" />
                  </field-visibility>
                  <appearance>
                     <field id="cm:name">
                       <control>
                          <control-param name="maxLength">255</control-param>
                       </control>
                     </field>
                     <field id="cm:title">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                     </field>
                     <field id="cm:description">
                        <control>
                           <control-param name="activateLinks">true</control-param>
                        </control>
                     </field>
                     <field id="cm:taggable">
                        <control>
                           <control-param name="compactMode">true</control-param>
                           <control-param name="params">aspect=cm:taggable</control-param>
                           <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                           <control-param name="createNewItemIcon">tag</control-param>
                        </control>
                     </field>
                     <field id="cm:categories">
                        <control>
                           <control-param name="compactMode">true</control-param>
                        </control>
                     </field>
      
                     <set id="mySet" appearance="title" label="My Set" />
                     <field id="cm:subject" set="mySet">
                         <control template="/org/alfresco/components/form/controls/textarea.ftl">
                             <control-param name="rows">10</control-param>                        
                         </control>
                     </field>
                     <field id="cm:publisher" set="mySet">
                         <control>
                             <control-param name="maxLength">255</control-param>
                         </control>
                     </field>				
      				
                  </appearance>
                </form>
      
                <!-- Document Library pop-up Edit Metadata form -->
               <form id="doclib-simple-metadata">
                  <field-visibility>
                     <show id="cm:name" />
                     <show id="cm:title" force="true" />
                     <show id="cm:description" force="true" />
                     <!-- tags and categories -->
                     <show id="cm:taggable" for-mode="edit" force="true" />
                     <show id="cm:categories" />
                  </field-visibility>
                  <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
                  <appearance>
                     <field id="cm:name">
                       <control>
                          <control-param name="maxLength">255</control-param>
                       </control>
                     </field>
                     <field id="cm:title">
                        <control template="/org/alfresco/components/form/controls/textfield.ftl" />
                     </field>
                     <field id="cm:description">
                        <control>
                           <control-param name="activateLinks">true</control-param>
                        </control>
                     </field>
                     <field id="cm:taggable">
                        <control>
                           <control-param name="compactMode">true</control-param>
                           <control-param name="params">aspect=cm:taggable</control-param>
                           <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
                           <control-param name="createNewItemIcon">tag</control-param>
                        </control>
                     </field>
                     <field id="cm:categories">
                        <control>
                           <control-param name="compactMode">true</control-param>
                        </control>
                     </field>
                  </appearance>
                </form>
            </forms>
         </config>
      

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs (Inactive)
                Reporter:
                ctan Craig Tan [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                8 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 - 2 weeks, 3 days, 5 hours, 30 minutes
                  2w 3d 5h 30m

                    Structure Helper Panel