|
@@ -400,8 +400,13 @@ function(cb=null){
|
|
|
|
|
|
crfData.setRegistration=
|
|
|
function(cb=null){
|
|
|
- let regQueryPars=variableList.parseVariables(this.setup.getSettings('registrationQuery'));
|
|
|
+ let regQuerySettings=this.setup.getSettings('registrationQuery');
|
|
|
+ let regQueryPars=variableList.parseVariables(regQuerySettings);
|
|
|
let q=regQueryPars['query'];
|
|
|
+ if (!q){
|
|
|
+ this.print('Registration query not set, got ['+regQuerySettings+'] for settings, should have query=X format');
|
|
|
+ return;
|
|
|
+ }
|
|
|
let queryArray=new Array();
|
|
|
let targetObject=this.getSnapshotObject();
|
|
|
let filters=[];
|