mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Fixed bug with simple timesheet view mode and the unused quantity field
This commit is contained in:
parent
30ce9afd8b
commit
f096249cab
@ -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