153 views

Description

A Requested Item record with a Catalog Item with variables with read-roles and mandatory, can not be editable for users without the required read-roles for the mandatory variable.

Steps to Reproduce

On the instance:

  1. Go to sc_cat_item.list
  2. Open the Catalog Item Reset Password:
  3. Go to requested_for variable and set mandatory = true
  4. Go to Impersonate User 
  5. Go to My Requested Items
  6. Open RQITM0057419
  7. Modify the RQITM and save/update and check that the next error appears: Submit canceled due to a script error - please contact your System Administrator

On Vanilla instance:

  1. Navigate to sc_cat_item.list
  2. Open the Catalog Item xxxx
  3. Navigate to Variables tab.
  4. Click on New
    • Type: Single Line Text
    • Go to Question tab:
      • Question: u_test
      • Name: u_test
      • Click Save
  5. Click New
    • Type: Reference
    • Set Mandatory = true
    • Go to Configure form layout and select read roles field.
    • Add admin role to read-roles field.
    • Go to Question tab:
      • Question: Requested For
      • Name: requested_for
    • Go to Type Specifications tab:
      • Reference: 'User[sys_user]'
    • Go to Default Value tab:
    • Set Default value = javascript:gs.getUserID()
  6. Click Save
  7. Go to Impersonate User ITIL.
  8. Go to Service Catalog from Filter Navigator
  9. Click on a Catalog item
  10. Click on Order Now
  11. Go to My request from Filter Navigator
  12. Open the last created request
  13. Go to Requested Items tab:
  14. Click on RITM
  15. Modify the RITM and save/update and check that the next error appears: Submit canceled due to a script error - please contact your System Administrator

Workaround

Create a new Property glide.sc.use_sc_form_v2 and create a value false


Related Problem: PRB1259816

Seen In

There is no data to report.

Intended Fix Version

London

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-05-17 09:16:37
Published:2018-05-17