This pull request fixes an issue when attempting to search orders when storing orders in the database.
Essentially, Runway was trying to search through all fields on the order blueprint. However, in our case, not all of those fields actually have associated database columns, so it was erroring out.
This PR fixes that by manually defining the runwaySearch scope to override how orders are searched. Search on orders now only searches through the order number, grand total, items total and customer name/email.
This pull request fixes an issue when attempting to search orders when storing orders in the database.
Essentially, Runway was trying to search through all fields on the order blueprint. However, in our case, not all of those fields actually have associated database columns, so it was erroring out.
This PR fixes that by manually defining the
runwaySearch
scope to override how orders are searched. Search on orders now only searches through the order number, grand total, items total and customer name/email.Fixes #1045.