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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • customPre_grouptitle "lost"
Pages: [1]

Author Topic: customPre_grouptitle "lost"  (Read 738 times)

SWD

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 3.4.8
  • CMS version: Drupal 6.22
  • MySQL version: 5.5.20
  • PHP version: 5.3.9
customPre_grouptitle "lost"
January 22, 2012, 09:26:58 pm
Hi everyone,
I wish I had the time to explain this whole situation but alas I don't!   I'm just hoping someone can point me in the right direction.
We have upgraded our client from 3.2.2 to 3.4.8.   Unfortunately the old developer created a custom module that produced a customised invoice/receipt when someone registered for an event.  When we have upgraded all of a sudden the invoice that is being sent out has reverted to the 'default' format when the custom format is dramatically different.

Anyway.... at the crux of the problem is this.  In the custom module method they refer to the following array element:
$values["customPre_grouptitle"]

It seems that this array element no longer exists or perhaps has been placed somewhere else in the mail parameters. 

Has anyone experienced this issue?  Yes I am a newbie to the Drupal world.  We're trying to rescue a client and have in fact had to be rescued ourselves (at great cost) but I'm slowly but surely getting the hang of it!

Any help would be truly appreciated.
Thanks
Josh

SWD

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 3.4.8
  • CMS version: Drupal 6.22
  • MySQL version: 5.5.20
  • PHP version: 5.3.9
Re: customPre_grouptitle "lost"
January 23, 2012, 02:45:56 pm
Ok, got some more information which  might actually be useful to anyone that might be able to help.
The problem is this.  At the point the code reaches our custom module we should be able to access all of the information relating to the event registration (registrant name, address, whether they paid or are paying later etc).  This is done by calling the Smarty method get_template_vars().   In the old system this brought back a wealth of information that could be analysed and used to generate the custom invoice PDF.

I have gone through the code and in the sendMail function in /civicrm/CRM/Event/BAO/Event.php there are two calls to CRM_Event_BAO_Event::BuildCustomDisplay.   I've analysed that code and it definitely seems to be placing all of the information required into the template.

So somewhere between where it stuffs the data into the template (using $template->assign()) and reaching our custom module this information appears to be being lost. 

Again I know I'm providing scant info but maybe this further detail can jog someone's memory.

Josh

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • customPre_grouptitle "lost"

This forum was archived on 2017-11-26.