Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-2908

Link to event registrtion page is incorrect on the 'Event information and Settings' page


    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: CiviEvent
    • Labels:


      At the bottom of the 'Event information and Settings' page for Event management (page 1 in the configuration) the link to the event registration page has incorrect 'id'.

      To recreate:
      Create a new event or editing the Event Information and Settings page of an existing event. See this at the bottom:

      "When this Event is active, create links to the Event Information page by copying and pasting the following URL:

      The string "id-listing" is incorrect and should be replaced with the numeric id of the event.

      The event id value is passed as the parameter "id" to the form. In the template CRM/Events/Form/ManageEvent/EventInfo.tpl the parameter "id" is being overwritten with values "id-listing" and "id-participant-role" by the help roll-over bubbles.

      An example solution is to assign a new variable to the form in CRM/Event/Form/ManageEvent::setdefaults (e.g. "$this->assign('eventid', $this->_id)"), and then use 'eventid' in the link text. Behaviour on new event creation needs to be decided though. If the event id hasn't been created yet then this link can't be created.
      For new events one of these choices could be made on the template with an if statement:
      a) the whole line should be left out of the form
      b) set eventid='<replace with id>'.
      c) change the text in the to "Once you have finished creating the event, create links to the Event Information page by copying the 'Live Page' link on the Manage Events page.' (this seems preferred to me)




            • Assignee:
              lobo Donald A. Lobo
              chrism Chris Mott
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created: