removed all legacy stuff, but the use_all checkbox

This commit is contained in:
Ralf Becker 2011-04-17 13:51:04 +00:00
parent 752cd7249f
commit af552dc914

View File

@ -776,15 +776,9 @@ class timesheet_ui extends timesheet_bo
$content['nm']['action'] = 'document'; $content['nm']['action'] = 'document';
$content['nm']['selected'] = array($id); $content['nm']['selected'] = array($id);
} }
// support old actions
if ($content['action'])
{
$content['nm']['action'] = $content['action'];
$content['nm']['selected'] = $content['nm']['rows']['checked'];
$content['nm']['select_all'] = $content['nm']['select_all'] || $content['use_all'];
}
if ($content['nm']['action']) if ($content['nm']['action'])
{ {
if ($content['use_all']) $content['nm']['select_all'] = $content['use_all']; // legacy support
if (!count($content['nm']['selected']) && !$content['nm']['select_all']) if (!count($content['nm']['selected']) && !$content['nm']['select_all'])
{ {
$msg = lang('You need to select some timesheets first'); $msg = lang('You need to select some timesheets first');