mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
"unit was missing for readonly values"
This commit is contained in:
parent
7ba02f326a
commit
6c1dcb430d
@ -367,12 +367,13 @@
|
||||
}
|
||||
if (!in_array($input_format,array('d','h','dh','m','hm','dhm'))) $input_format = 'dh'; // hours + days
|
||||
|
||||
$unit = $input_format == 'd' ? 'd' : 'h';
|
||||
if (!$readonly) // dont set extension-data on readonly, it's not needed and can conflict with other widgets
|
||||
{
|
||||
$extension_data = array(
|
||||
'type' => $cell['type'],
|
||||
'data_format' => $data_format,
|
||||
'unit' => ($unit = $input_format == 'd' ? 'd' : 'h'),
|
||||
'unit' => $unit,
|
||||
'input_format' => $input_format,
|
||||
'hours_per_day' => $hours_per_day,
|
||||
'percent_allowed'=> $percent_allowed,
|
||||
|
Loading…
Reference in New Issue
Block a user