Selaa lähdekoodia

Correcting formation of labels in crfSetup.js

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

+ 5 - 2
web/crf/crfSetup.js

@@ -143,8 +143,11 @@ function(entry){
    let pid=entry[this.getStudyIdLabel()];
    let loc=entry[this.getLocalIdLabel()];
    let label='';
-   if (pid) label+=pid;
-   if (loc) label+=' (Local: '+loc+')';
+   if (pid) {
+      label+=pid;
+      if (loc) label+=' ';
+   }
+   if (loc) label+='(Local: '+loc+')';
    if (label.length==0) label="NONE";
    return label;