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

PopupManager:displayForm does NOT handle mandatory form parameters

    Details

      Description

      How to reproduce?

      1. Run the attached AIO maven Project:
      mvn clean install -DskipTests -Prun
      2. Access Share
      3. Create a document into the Repository
      4. Click on the "Mandatory Parameter Test" Action

      Expected Behaviour?

      The OK submit button should be disabled when mandatory parameters are empty

      Actual Behaviour

      The OK submit button is not disabled, when clicking on it the popup disappears and the action is not fired, NO error is shown

      Notes

      Form Definition:

      <config evaluator="string-compare" condition="mandatory-parameter-test">      <forms>
         <form>
           <field-visibility>
             	<show id="mandatoryParameter1"/>
             	<show id="mandatoryParameter2"/>
            </field-visibility>
            <appearance> 
           <field id="mandatoryParameter1" mandatory="true" label="Mandatory Parameter 1"> 
        <control template="/org/alfresco/components/form/controls/textfield.ftl" /> 
           </field>
           <field id="mandatoryParameter2" mandatory="true" label="Mandatory Parameter 2"> 
         <control template="/org/alfresco/components/form/controls/textfield.ftl" /> 
          </field> 
         </appearance> 
        </form>
        </forms>
        </config>
      

      Action Definition:

      <action id="mandatory-parameter-test" type="javascript" label="Mandatory Parameter Test">
                  <param name="function">onActionFormDialog</param>
                  <param name="itemKind">action</param>
                  <param name="itemId">mandatory-parameter-test</param>
                  <param name="mode">create</param>
      	        <param name="destination">{node.nodeRef}</param>
                  <param name="successMessage">success</param>
                  <param name="failureMessage">failure</param>
               </action>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs
                Reporter:
                mmancuso Marco Mancuso
              • Votes:
                0 Vote for this issue
                Watchers:
                10 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 - 1 week, 2 hours, 45 minutes
                  1w 2h 45m