Planner view

- Fix extra sub-category events when hiding empty rows
This commit is contained in:
Nathan Gray 2015-12-17 22:43:22 +00:00
parent cd9381c223
commit c3900b27a4

View File

@ -819,6 +819,11 @@ var et2_calendar_planner = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResize
// Draw the rows
for(var key in labels)
{
if((!app.calendar.state.cat_id || app.calendar.state.cat_id == '') && labels[key].id != labels[key].main)
{
// Skip sub-categories (events are merged into top level)
continue;
}
var row = grouper.draw_row.call(this,labels[key].id, labels[key].label, events[key] || []);
// Add extra data for clicking on row