Author Topic: Missing fields cause script error when building a new search from Workorder List  (Read 2179 times)

raklet

  • Newbie
  • *
  • Posts: 2
When I go to the workorder list, click on search, and select new, firebug interrupts script execution to announce that there are errors in the script.  The line of code that it breaks on is:

CalemTableDd.prototype.getLabelId=function(fld){var id=this._allTableDef.fields[fld]['label'];return(id?id:fld);}

With the message:

this._allTableDef.fields[fld] is undefined

Line 1712


There are six total fields that are undefined.

finish_by_id
finish_note
accepted_by_id
accepted_time
accept_note
close_by_id

It appears to me that these fields used to exist both in the database and in the forms, but no longer exist in either since the program has evolved.  However, they are still being called from the following files:

client/launchpad/resource/CalemMsg_en_CA.js
client/launchpad/resource/CalemMsg_de_DE.js.min
client/launchpad/resource/CalemMsg.phpo
client/launchpad/resource/CalemMsg_en_AU.phpo
client/launchpad/resource/CalemMsg_en_AU.js.min
client/launchpad/resource/CalemMsg_en_AU.js
client/launchpad/resource/CalemMsg_de_DE.js
client/launchpad/resource/CalemMsg_de_DE.phpo
client/launchpad/resource/CalemMsg_en_CA.js.min
client/launchpad/resource/CalemMsg.js
client/launchpad/resource/CalemMsg.js.min
client/launchpad/resource/CalemMsg_en_GB.phpo
client/launchpad/resource/CalemMsg_en_GB.js.min
client/launchpad/resource/CalemMsg_en_CA.phpo
client/launchpad/resource/CalemMsg_en_GB.js
client/lang/CalemMsg_de.properties
client/lang/CalemMsg.properties
custom/group/CALEM_OOB/CalemWoViewSearch.view.js
custom/group/CALEM_OOB/CalemWoReportRead.view.js
custom/group/CALEM_OOB/converted/CalemWoReportRead.phpo
custom/group/CALEM_OOB.view.js
custom/group/CALEM_OOB.view.js.min


I have filed a report in mantis.

Cheers,

Tyler