ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Default ID on Tell-A-Friend

August 31, 2012 3:46pm

Subscribe [1]
  • #1 / Aug 31, 2012 3:46pm

    ruraldreams

    279 posts

    Docs say that the default ID on tell-a-friend forms is “tellafriend_form”
    http://ellislab.com/expressionengine/user-guide/modules/email/tellafriend.html#form-id

    On an upgrade from an EE1 installation I’m seeing this tag defaulting to an ID of “contact_form”.  I imagine that I can fix it by specifying the ID in the tag, so just reporting.

  • #2 / Sep 04, 2012 6:50pm

    Kevin Smith

    4784 posts

    Hi ruraldreams,

    Hmm… even on an upgrade, the ID on the EE 2.5.2 version of the form should default to “tellafriend_form”. Are you running the latest version EE 2? Are you looking at the Tell-a-Friend form or the Contact form?

  • #3 / Sep 04, 2012 10:56pm

    ruraldreams

    279 posts

    It’s 2.5.2.  Please test it and you’ll see what I mean.

  • #4 / Sep 06, 2012 2:31pm

    Kevin Smith

    4784 posts

    Yep, looks like that’s indeed a bug. I went ahead and fixed it up in the code in development, so that’ll be available with the next release of EE. In the meantime, here’s how you can fix it in your own installation. Open up /system/expressionengine/modules/email/mod.email.php and look for line 893. It should look like this:

    'id'   => ($this->EE->TMPL->form_id == '') ? 'contact_form' : $this->EE->TMPL->form_id,

    Replace that line with this one:

    'id'   => ($this->EE->TMPL->form_id == '') ? $form_id : $this->EE->TMPL->form_id,

    Hope that helps!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases