projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a TODO comment about RAM issue.
[timetracker.git]
/
WEB-INF
/
lib
/
form
/
FloatField.class.php
diff --git
a/WEB-INF/lib/form/FloatField.class.php
b/WEB-INF/lib/form/FloatField.class.php
index
c4e9d9e
..
5b93975
100644
(file)
--- a/
WEB-INF/lib/form/FloatField.class.php
+++ b/
WEB-INF/lib/form/FloatField.class.php
@@
-29,19
+29,20
@@
import('form.TextField');
class FloatField extends TextField {
import('form.TextField');
class FloatField extends TextField {
-
var $mDelimiter = '.';
var $mFFormat;
var $mDelimiter = '.';
var $mFFormat;
- var $class = 'FloatField';
-
+
function __construct($name) {
function __construct($name) {
+ global $user;
+
+ $this->class = 'FloatField';
$this->name = $name;
$this->name = $name;
+ $this->mDelimiter = $user->getDecimalMark();
}
}
- function setLocalization($i18n) {
- FormElement::setLocalization($i18n);
+ function localize() {
global $user;
global $user;
- $this->mDelimiter = $user->
decimal_mark
;
+ $this->mDelimiter = $user->
getDecimalMark()
;
}
function setFormat($format) {
}
function setFormat($format) {