You are viewing the PKP Support Forum | PKP Home Wiki

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
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

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: 5
Joined: Fri Jul 20, 2007 6:08 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: 163
Joined: Mon Dec 13, 2010 3:29 pm

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.

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

Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest