* Calendar: Fix some favorites with multi-categories get failed to be shown in calendar

This commit is contained in:
Hadi Nategh 2016-09-08 12:30:42 +02:00
parent 54ff01302e
commit aad3b739d8

View File

@ -2836,6 +2836,8 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
{ {
if(cat_id.join('') == '') cat_id = false; if(cat_id.join('') == '') cat_id = false;
} }
// Make sure cat_id reaches to server in array format
if (cat_id && typeof cat_id == 'string') cat_id = cat_id.split(',');
var query = jQuery.extend({}, { var query = jQuery.extend({}, {
get_rows: 'calendar.calendar_uilist.get_rows', get_rows: 'calendar.calendar_uilist.get_rows',