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

form with apostrophe as a item in Constraint list

    Details

    • Type: Service Pack Request
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 4.2.3
    • Fix Version/s: 4.2.5
    • Labels:
      None
    • Environment:
      Version: Alfresco: 4.2.3 (.3 r84297-b59) schema 6,061

      Description

      Create a content model with a custom field that references a constraint list that contains a value with an apostrophe (‘)
      Deploy this content model
      Load a form and select the value with the apostrophe assigned to the property
      Attempt to save form

      Expected result:
      Form saves and node property is updated with the constraint value chosen.

      Actual:
      Form doesn’t save and throws a constraint error.

      Reason:

      The selectone.ftl doesn’t render the options correctly, its unable to parse the select “option value” due to the html line:

      <option value=’${nameValue?html}’<#if nameValue == fieldValue?string || (fieldValue?is_number && fieldValue?c == nameValue)> selected="selected"</#if>>${nameValue?html}</option> 
      

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs (Inactive)
                  Reporter:
                  asolerasenci Antonio Soler-Asenci [X] (Inactive)
                • Votes:
                  1 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 - 6 hours, 30 minutes
                    6h 30m

                      Structure Helper Panel