Browse Source

Cosmetics in crfData.js

Andrej Studen 1 year ago
parent
commit
4efa18710c
1 changed files with 5 additions and 2 deletions
  1. 5 2
      web/crf/crfData.js

+ 5 - 2
web/crf/crfData.js

@@ -76,8 +76,10 @@ function(queryName){
 
 crfData.getRegistration=
 function(){
+   let fName='[getRegistration]';
    let regQueryPars=variableList.parseVariables(this.setup.getSettings('registrationQuery'));
    let query=regQueryPars['query'];
+   this.print(fName+' query '+query);
    return this.getQuerySnapshot(query).rows;
 }
 
@@ -389,11 +391,12 @@ function(cb=null){
 
 crfData.setRegistration=
 function(cb=null){
-      let regQueryPars=variableList.parseVariables(this.setup.getSettings('registrationQuery'));
+   let regQueryPars=variableList.parseVariables(this.setup.getSettings('registrationQuery'));
    let q=regQueryPars['query'];
    let queryArray=new Array();   
    let targetObject=this.getSnapshotObject();
-   queryArray.push(runQuery.makeQuery(targetObject,'data',q,q,[]));
+   let filters=[];
+   queryArray.push(runQuery.makeQuery(targetObject,'data',q,q,filters));
    runQuery.getDataFromQueries(this,queryArray,cb);
 }