mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-07-05 17:37:46 +02:00
LSformElement/quota : fixed bug in value rounded.
This commit is contained in:
parent
e655335f0b
commit
5acce552a1
|
@ -136,7 +136,8 @@ class LSformElement_quota extends LSformElement {
|
||||||
if (isset($_POST[$this -> name.'_sizeFact'][$key]) && ($_POST[$this -> name.'_sizeFact'][$key]!=1)) {
|
if (isset($_POST[$this -> name.'_sizeFact'][$key]) && ($_POST[$this -> name.'_sizeFact'][$key]!=1)) {
|
||||||
$f = $_POST[$this -> name.'_sizeFact'][$key];
|
$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;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue