fixed study level number of intances default to 0

This commit is contained in:
weiwei 2016-09-02 20:28:54 +08:00
parent cefea45472
commit 4a389d2304

View File

@ -167,7 +167,7 @@ function search() {
(convertStringToStudyDate(study.studyDate) <= new Date(studyDateTo).setHours(0, 0, 0, 0) || !studyDateTo || studyDateTo === '')) {
// Convert numberOfStudyRelatedInstance string into integer
study.numberOfStudyRelatedInstances = parseInt(study.numberOfStudyRelatedInstances);
study.numberOfStudyRelatedInstances = !isNaN(study.numberOfStudyRelatedInstances) ? parseInt(study.numberOfStudyRelatedInstances) : 0;
// Insert any matching studies into the WorklistStudies Collection
WorklistStudies.insert(study);