Now with search by location name!
This commit is contained in:
@@ -399,6 +399,7 @@ export async function search__event_session(
|
||||
like_presentation_search_qry_str = null,
|
||||
like_presenter_search_qry_str = null,
|
||||
file_count = false, // If true then only show those that have a file count
|
||||
location_name = null,
|
||||
params = {},
|
||||
try_cache = true,
|
||||
log_lvl = 0
|
||||
@@ -411,6 +412,7 @@ export async function search__event_session(
|
||||
like_presentation_search_qry_str?: null|string,
|
||||
like_presenter_search_qry_str?: null|string,
|
||||
file_count?: boolean,
|
||||
location_name?: null|string,
|
||||
params?: any,
|
||||
try_cache?: boolean,
|
||||
log_lvl?: number
|
||||
@@ -472,6 +474,11 @@ export async function search__event_session(
|
||||
params_json['and_qry']['file_count'] = file_count;
|
||||
}
|
||||
|
||||
// This should be using a like with surrounded by %'s
|
||||
if (location_name) {
|
||||
params_json['and_qry']['event_location_name'] = location_name;
|
||||
}
|
||||
|
||||
let order_by_li = {'priority': 'DESC', 'sort': 'DESC', 'start_datetime': 'ASC', 'name': 'ASC', 'updated_on': 'DESC', 'created_on': 'DESC'};
|
||||
|
||||
ae_promises.load__event_session_obj_li = await api.get_ae_obj_li_for_obj_id_crud({
|
||||
|
||||
Reference in New Issue
Block a user