enable sum-rows to be able to merge-print selections containing them and remove them later from the selection

This commit is contained in:
Ralf Becker 2014-01-31 11:58:58 +00:00
parent d627be8763
commit cf96da6f2f

View File

@ -832,6 +832,11 @@ class timesheet_ui extends timesheet_bo
}
if ($content['nm']['action'])
{
// remove sum-* rows from checked rows
$content['nm']['selected'] = array_filter($content['nm']['selected'], function($id)
{
return $id > 0;
});
if (!count($content['nm']['selected']) && !$content['nm']['select_all'])
{
$msg = lang('You need to select some entries first!');
@ -1016,9 +1021,6 @@ class timesheet_ui extends timesheet_bo
$actions[$action]['disableClass'] = 'rowNoEdit';
}
}
$actions['documents'] += array(
'disableClass' => 'th',
);
//_debug_array($actions);
return $actions;
}