Bug report and fix on registration

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 5
Joined: Fri Jul 20, 2007 6:08 pm

Bug report and fix on registration

Postby wuyh » Wed Jan 02, 2008 1:21 pm

The original registration date will be changed once the manager try to make updates on the registration. For example, update a payment.
I found that this bug hidden in /classes/registration/form/registrationForm.inc.php, line 172.

Code: Select all


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

Posts: 163
Joined: Mon Dec 13, 2010 3:29 pm

Re: Bug report and fix on registration

Postby piotreba » Sat Apr 30, 2011 8:08 am

Hello, I am using version of OCS and still there is a bug that when I update the payment time the registration date changes...


Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am

Re: Bug report and fix on registration

Postby jmacgreg » Mon May 02, 2011 12:19 pm

Hi wuyh, Peter,

Wuyh, a belated thank-you for the fix. Peter, I have verified that this still hasn't been fixed in OCS 2.3.3-1. I've reported a bug here, and have modified wuyh's fix to work in 2.3.3-1 as well. Note that this is an untested patch, but I hope to have it verified and committed soon.


Return to “OCS Technical Support”

Who is online

Users browsing this forum: No registered users and 1 guest