mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 19:39:26 +01:00
fix for integer input with negative length, to get readonly input field, fixes html5 not setting size/width commit
This commit is contained in:
parent
7492d9c7cb
commit
4e2c48bae9
@ -1261,7 +1261,7 @@ class etemplate extends boetemplate
|
||||
$cell_options = $cell['type'] == 'int' ? 5 : 8;
|
||||
}
|
||||
// html5 input type=nummeric seems to ignore size, setting a width instead
|
||||
$options .= ' style="width: '.(3+$cell_options).'ex"';
|
||||
$options .= ' style="width: '.(3+abs($cell_options)).'ex"';
|
||||
if (($type == 'float' || !is_numeric($pre)) && $value && $pre)
|
||||
{
|
||||
$value = is_numeric($pre) ? self::number_format($value,$pre,$readonly) : sprintf($pre,$value);
|
||||
|
Loading…
Reference in New Issue
Block a user