Lines 328-333
Link Here
|
328 |
let sub_or = []; |
328 |
let sub_or = []; |
329 |
search_fields.split(',').forEach(function(attr,ii){ |
329 |
search_fields.split(',').forEach(function(attr,ii){ |
330 |
sub_or.push({["me."+attr]:{"like":(search_type == "contain" ? "%" : "" ) + pattern + "%"}}); |
330 |
sub_or.push({["me."+attr]:{"like":(search_type == "contain" ? "%" : "" ) + pattern + "%"}}); |
|
|
331 |
if ( attr == 'dateofbirth' ) { |
332 |
try { |
333 |
let d = $date_to_rfc3339(pattern); |
334 |
sub_or.push({["me."+attr]:d}); |
335 |
} catch { |
336 |
// Hide the warning if the date is not correct |
337 |
} |
338 |
} |
331 |
}); |
339 |
}); |
332 |
subquery_and.push(sub_or); |
340 |
subquery_and.push(sub_or); |
333 |
}); |
341 |
}); |
334 |
- |
|
|