mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 11:52:59 +01:00
LSformElement/quota : fixed bug in value rounded.
This commit is contained in:
parent
e655335f0b
commit
5acce552a1
1 changed files with 2 additions and 1 deletions
|
@ -136,7 +136,8 @@ class LSformElement_quota extends LSformElement {
|
|||
if (isset($_POST[$this -> name.'_sizeFact'][$key]) && ($_POST[$this -> name.'_sizeFact'][$key]!=1)) {
|
||||
$f = $_POST[$this -> name.'_sizeFact'][$key];
|
||||
}
|
||||
$return[$this -> name][$key] = intval(ceil(($val*$f)*$this -> getFactor()));
|
||||
$val=preg_replace('/,/','.',$val);
|
||||
$return[$this -> name][$key] = ceil(ceil(($val*$f)*$this -> getFactor()));
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue