308 views

Description

If you have onLoad client scripts to pre-populate fields, reference qualifiers that depend on these values do not work if List v3 is active because the values are not passed from the client to the server.

Steps to Reproduce

 

  1. Navigate to sc_task.list and click the New button.

  2. Add an onLoad client script to set the assigned_to field to the UserID value of the current user.

  3. Add an advanced reference qualifier to the cmdb_ci field:
    javascript:"assigned_to="+current.assigned_to;

  4. Impersonate System Administrator, navigate to sc_task.list, and click the New button.

  5. Click the Configuration item search icon.

    One record is retrieved in the reference list pop-up.

  6. Navigate to System Definition > Plugins, and activate List v3.

  7. Log out, close the browser tab, and hop back in to the instance.

  8. Impersonate System Administrator, navigate to sc_task.list, and click the New button.

    Note that the Assigned to field is pre-populated with System Administrator, and the hover icon is populated.

  9. Click the Configuration item search icon.

    Rather than a single record, multiple configuration item records appear because the search filter is for assigned_to=.

Workaround

Choose from the following workarounds:

  • Turn off List v3.
  • Manually populate the fields in the form.
  • Use a sys_dictionary Default value to pre-populate a value into the new record instead of an onLoad client script.

Related Problem: PRB742691

Seen In

There is no data to report.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-09-05 10:29:39
Published:2017-07-28