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

Properties with localized constraints are not correctly rendered when using metadata-templates in documentlibrary

    Details

    • Type: Service Pack Request
    • Status: Closed (View Workflow)
    • Resolution: Not a bug
    • Affects Version/s: 4.2.4
    • Fix Version/s: None
    • Component/s: Share Application
    • Environment:
      Alfresco Community 4.2.f
      Tomcat 7
      Ubuntu 14.04
    • Bug Priority:
      Category 3
    • ACT Numbers:

      00396976

      Description

      I'm trying to use a localized list contraint to use in my customization.

      I've defined a constraint like this:

      <constraint name="my:gender" type="LIST">
      <parameter name="allowedValues">
      <list>
      <value>male</value>
      <value>female</value>
      </list>
      </parameter>
      </constraint>

      And the localization is like this
      listconstraint.my_gender.male=Male
      listconstraint.my_gender.female=Female

      If I add the custom field using that list constraint in a metadata-template, like bellow, the documentLibrary component always shows the internal value (male/female) and not the localized ones (Male/Female).

      <line index="10" id="customField">

      {test:myCustomField prop.myCustomField}

      </line>

      In all the others forms (view properties, edit properties, create new document), the property is correctly shown.

      The problem only happens in documentLibrary list.

        Attachments

          Activity

            People

            • Assignee:
              closedissues Closed Issues
              Reporter:
              douglascrp Douglas Cassiano Rodrigues Paes
            • Votes:
              2 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 - 4 hours
                4h