Issues with Mandatory Attachment setting on service portal


Description

A catalog item request gets checkout without mandatory attachment, not honoring the enabled "Mandatory Attachment" setting. 

Steps to Reproduce

In an affected instance:

  1. Create a catalog item with portal settings set to mandatory attachment true.
  2. Open the item in the portal.
  3. The Portal two-step checkout should be enabled.
    1. First Issue
      1. Add a mandatory attachment.
      2. Delete the attachment.
      3. Order now immediately.
        • Expected behavior: Order Now should wait until the state changes.
        • Actual behavior: You are able to order the item without the mandatory attachment
    2. Second Issue
      1. Add a mandatory attachment.
      2. Click on Order Now
      3. Click on cancel the request.
      4. Remove the attachment.
      5. Click on Order Now
        • Expected behavior: Should throw error no attachment.
        • Actual behavior:
          1. The attachment component is not visible.
          2. State of the Order Now component is set to submitting. (the form is broken).

 

Workaround

This issue has been fixed. If you are able to upgrade, review the Fixed In or Intended Fix Version fields to determine whether any versions have a planned or permanent fix.


Related Problem: PRB1351567