Catalog Client scripts might not apply correctly, or Catalog UI policies might not apply correctly.
When applying admin to write_roles on a variable, and a UI policy is making the variable mandatory on the [sc_task] record. As ITIL user, there is an unexpected behavior when setting the work_notes field on the task to mandatory via g_form.setMandatory(). The visual cue does not display, and the record complains about not have a value in the work_notes field when saving.
When a variable has admin write role, and a Catalog UI policy is using it to apply UI actions this fails for an ITIL user, on the [sc_req_item] record.
Steps to Reproduce
- Create a variable in a catalog item having ITIL as read role.
- Create a user, having role action_designer.
- Enable two-step checkout.
- Order catalog item for the newly created user.
- Impersonate to the new user, open the RITM.
- Open console in browser - and notice the error.
Uncaught TypeError: Cannot read property 'value' of null
at e.isFieldValueBlank (SCVariableCheckboxElement.jsx?v=02-20-2018_2030:93)
at e.isChecked (SCVariableCheckboxElement.jsx?v=02-20-2018_2030:98)
at e._isCheckboxGroupMandatory (ServiceCatalogForm17.jsx?v=02-20-2018_2030:1069)
at e._isCheckboxGroupMandatory (ServiceCatalogForm17.jsx?v=02-20-2018_2030:1054)
at e.getMissingFields (ServiceCatalogForm17.jsx?v=02-20-2018_2030:152)
at e.getMissingFields (GlideForm14.jsx?v=02-20-2018_2030:950)
at e.markMandatoryTabs (GlideTabs2.jsx?v=02-20-2018_2030:415)
at e.startCatchingMandatory (GlideTabs2.jsx?v=02-20-2018_2030:406)
at fireEvent (CustomEventManager.jsx?v=02-20-2018_2030:154)
at Object.fire (CustomEventManager.jsx?v=02-20-2018_2030:109)
This problem is fixed in the London release.
See also the related article KB0680152 - UI policies and client scripts behaving differently after upgrading to Kingston
Related Problem: PRB1255600