Check cat_id and join function are not undefined

This commit is contained in:
Hadi Nategh 2015-11-20 09:05:53 +00:00
parent 2c5b1de5b5
commit 5a6ca10c0d

View File

@ -2285,7 +2285,7 @@ app.classes.calendar = AppJS.extend(
col_filter: {participant: (typeof state.owner == 'string' || typeof state.owner == 'number' ? [state.owner] : state.owner)},
filter:'custom', // Must be custom to get start & end dates
status_filter: state.filter,
cat_id: state.cat_id && state.cat_id.join('') != '' ? state.cat_id : false,
cat_id: state.cat_id && typeof state.cat_id.join != "undefined" && state.cat_id.join('') != '' ? state.cat_id : false,
search: state.keywords,
csv_export: false
});