Make sure object is there before join(), fix not working calendar

This commit is contained in:
Hadi Nategh 2015-11-19 09:08:42 +00:00
parent a74e79becc
commit 5f86f911f7

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.join('') != '' ? state.cat_id : false,
cat_id: state.cate_id && state.cat_id.join('') != '' ? state.cat_id : false,
search: state.keywords,
csv_export: false
});