mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
Fixed bug with simple timesheet view mode and the unused quantity field
This commit is contained in:
parent
6b06060923
commit
1a142d1ad0
@ -158,7 +158,7 @@ class timesheet_ui extends timesheet_bo
|
||||
case 'save':
|
||||
case 'save_new':
|
||||
case 'apply':
|
||||
if (!$this->data['ts_quantity'] && $this->data['ts_duration']) // set the quantity (in h) from the duration (in min)
|
||||
if ((!$this->data['ts_quantity'] || $this->ts_viewtype == 'short') && $this->data['ts_duration']) // set the quantity (in h) from the duration (in min)
|
||||
{
|
||||
$this->data['ts_quantity'] = $this->data['ts_duration'] / 60.0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user