Below is the error that shows up when attempting to update the page in anyway.

onSubmit script error: TypeError: Cannot read property 'visibility' of undefined:
function () {
var sel0 = gel('select_0sc_task.work_notes_list')
var distribution = gel('sc_task.work_notes_list')
saveAllSelected([ sel0 ], [ distribution ], ',', '\\', '--None--');

Steps to Reproduce

  1. Create a variable of type reference to User [sys_user]. This will be a new entry in item_option_new.
  2. Attach the variable to a sc_cat_item and order the item.
  3. Go to sc_item_option_mtom and select Personalize/configure list layout. Add a dependent item related field: question.
  4. Create a new sc_item_option_mtom entry but point it to the same item_option_new question. This means that an RITM has two answers to the same question (data corruption).
  5. Go to the RITM. You should see two variables.
  6. Click Save and you see the error message.


The fix has been done in Java code, so the issue cannot be prevented programmatically.

The only workaround is to leave only one answer per variable per requested item:

Go to <instance_name>/sc_item_option_mtom_list.do and make sure that there are not multiple records with the same parent item and dependent item.

Related Problem: PRB582798

Seen In

Aspen Patch 2
Berlin Hot Fix 4
Calgary Patch 1 Hot Fix 8
Calgary Patch 2 Hot Fix 6
Calgary Patch 2 Hot Fix 8
Dublin Patch 3 Hot Fix 1
Eureka Patch 1
Eureka Patch 11
Eureka Patch 5
June 2011 Patch 3 Hot Fix 11

Fixed In


Associated Community Threads

There is no data to report.

Article Information

Last Updated:2015-10-16 08:16:56