X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/6e59f47d1baf9e3d420b4a368dcc005d54b6e599..cb8e3de960b758147b34d8323054e7de70548619:/WEB-INF/lib/form/DateField.class.php diff --git a/WEB-INF/lib/form/DateField.class.php b/WEB-INF/lib/form/DateField.class.php index 24266a39..7075c42b 100644 --- a/WEB-INF/lib/form/DateField.class.php +++ b/WEB-INF/lib/form/DateField.class.php @@ -68,13 +68,13 @@ class DateField extends TextField { function setValueSafe($value) { if (isset($value) && (strlen($value) > 0)) { $this->mDateObj->parseVal($value, DB_DATEFORMAT); - $this->mValue = $this->mDateObj->toString($this->mDateFormat); //? + $this->value = $this->mDateObj->toString($this->mDateFormat); //? } } // get value for storing in session or database function getValueSafe() { - if (strlen($this->mValue)>0) { - $this->mDateObj->parseVal($this->mValue, $this->mDateFormat); //? + if (strlen($this->value)>0) { + $this->mDateObj->parseVal($this->value, $this->mDateFormat); //? return $this->mDateObj->toString(DB_DATEFORMAT); } else { return null;