CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Registration for event closed, going to homepage, can we fix this behavior?
Pages: [1]

Author Topic: Registration for event closed, going to homepage, can we fix this behavior?  (Read 1604 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Registration for event closed, going to homepage, can we fix this behavior?
December 14, 2012, 02:51:43 pm
If an event is full and someone visits civicrm/event/register?id=x then they are redirected to /civicrm/event/info and given the "full" message.

If an event registration is closed but the event is still active with a event start date in the future, I suggest behavior of civicrm/event/register?id=x can be improved:

1. while logged in as an administrator, civicrm/event/register?id=x will forward to the "manage events" page with a message that registration is closed. 

2. while anonymous I am forwarded to the drupal homepage, even though i have anonymous permissions to see event info.

Shouldn't attempts to access /civicrm/event/register be redirected to /civicrm/event/info and not the homepage for closed registration events?

I cannot reproduce #2 on the demo site, as event info is not an anonymous permission for demo site users.  I have however, confirmed this behavior on two separate 4.2.6 sites, both with very basic configurations.


Sponsorship available.


I am using 4.2.6 on D7.
« Last Edit: December 14, 2012, 02:57:19 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

kharding

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 4
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 7
  • MySQL version: Recent
  • PHP version: 5.3.16
Re: Registration for event closed, going to homepage, can we fix this behavior?
December 14, 2012, 03:31:22 pm
Agreed. I think that the redirect from a closed registration ought to go to the event info page. Currently, on my install, it goes to the home page of the CMS.

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Registration for event closed, going to homepage, can we fix this behavior?
December 28, 2012, 04:12:18 am
This has been fixed for 4.3

-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Re: Registration for event closed, going to homepage, can we fix this behavior?
February 11, 2013, 08:09:57 am
I see the bug report is marked fixed here: http://issues.civicrm.org/jira/browse/CRM-11505  I'd like to apply the fix to my 4.2.6 site but I don't see any detail about what was done.   

We're not ready to upgrade to 4.3 until our conference is over.

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Re: Registration for event closed, going to homepage, can we fix this behavior?
February 25, 2013, 08:51:42 am
Just in case anyone else needs to fix this.  Code to fix is in /civicrm/CRM/event/form/registration.php

There's a function beginning on line1381 called "function checkValidEvent".  Replace that function definition with the one from the current code, and then find the place where it's called (line) 263, and replace the call, since the new function takes a parameter.

This seems to be working for me.  Yashodha, if there is anything else to do, please let us know.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Registration for event closed, going to homepage, can we fix this behavior?

This forum was archived on 2017-11-26.