lib/finapps/rest/documents_orders.rb in finapps-5.0.29 vs lib/finapps/rest/documents_orders.rb in finapps-5.0.30
- old
+ new
@@ -51,10 +51,11 @@
def search_query(term)
if term
{
"$or": [
- { "order_id": { "$regex": "^#{term}", "$options": 'i' } },
+ { "applicant.email": term },
+ { "applicant.first_name": term },
{ "applicant.last_name": term },
{
"reference_no": {
"$regex": "^#{term}", "$options": 'i'
}