mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 07:28:43 +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
|
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
|
if (!$readonly) // dont set extension-data on readonly, it's not needed and can conflict with other widgets
|
||||||
{
|
{
|
||||||
$extension_data = array(
|
$extension_data = array(
|
||||||
'type' => $cell['type'],
|
'type' => $cell['type'],
|
||||||
'data_format' => $data_format,
|
'data_format' => $data_format,
|
||||||
'unit' => ($unit = $input_format == 'd' ? 'd' : 'h'),
|
'unit' => $unit,
|
||||||
'input_format' => $input_format,
|
'input_format' => $input_format,
|
||||||
'hours_per_day' => $hours_per_day,
|
'hours_per_day' => $hours_per_day,
|
||||||
'percent_allowed'=> $percent_allowed,
|
'percent_allowed'=> $percent_allowed,
|
||||||
|
Loading…
Reference in New Issue
Block a user