Selaa lähdekoodia

Adjusting idLabel parsing to work for studyId less entries

Andrej Studen 1 vuosi sitten
vanhempi
commit
2a647999db
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      web/crf/crfSetup.js

+ 2 - 1
web/crf/crfSetup.js

@@ -152,7 +152,8 @@ function(entry){
 
 crfSetup.getStudyId=
 function(label){
-   return label.replace(/ \([^\)]*\)/,"");
+   this.print('getStudyId: label ['+label+']');
+   return label.replace(/ ?\([^\)]*\)/,"");
 }
 
 crfSetup.getLocalId=