[WEBCLIENT-230] Date constraint window doesn't close if table name is undefined Created: 05/Feb/18  Updated: 25/Apr/18  Resolved: 05/Feb/18

Status: Resolved
Project: i2b2 Web Client
Component/s: Web Client
Affects Version/s: None
Fix Version/s: 1.7.10

Type: Bug Priority: Major
Reporter: Janice Donahoe Assignee: Mike Mendis
Resolution: Fixed Votes: 0
Labels: wikirelease
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

i2b2 Feature/s:
Constraints - Date
Participant/s:

 Description   
Occasionally the date constraint window doesn't close when a user clicks on the OK button in the dialog.

The following is from Andrew Vallejos:

After looking around the code I found the error occured around line 435 of CRC_ctrlr_Dates.js. For some reason the table_name is sometimes undefined, which causes the javascript to error. I did a small workaround by checking to make sure table_name is defined.
 
   if(typeof(table_name) != "undefined" && table_name.toLowerCase() == 'patient_dimension'){
 
That seemed to solve the problem. Any ideas why sometimes the table_name would sometimes be undefined?


Generated at Tue Apr 23 22:59:27 UTC 2024 using Jira 8.20.11#820011-sha1:0629dd8d260e3954ece49053e565d01dabe11609.