I found that this bug hidden in /classes/registration/form/registrationForm.inc.php, line 172.
- Code: Select all
$registration->setDateRegistered(time());
everytime this form get executed, the registration time get changed. To fix this, i moved this line to line 163, the same file.
- Code: Select all
if (!isset($registration)) {
$registration = &new Registration();
$registration->setDateRegistered(time()); //bug fixed by WYH. set date only when it is a new registration
}
version of OCS i have is 2.0.0.1.
