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) »
  • emails from Custom Search :: Can not find csID :: Fatal error
Pages: [1]

Author Topic: emails from Custom Search :: Can not find csID :: Fatal error  (Read 914 times)

JoopSJ

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 2
emails from Custom Search :: Can not find csID :: Fatal error
March 08, 2010, 03:08:31 am
Case:
I'm using a Custom search that produces a list of individuals.
Custom search works OK. I can use all actions from the dropdown list (delete contact, export contact etc.)

Also when I choose "Send email to contacts" this works properly.
However after filling and sending the mail message, Civi gives fatal error:
Could not get details for custom search.
The email is however send properly.

drupal_set_message (debug code added by me) shows that  a valid $csID is used all the time, except upon submitting the email-form. In this case csid is empty.

It is not clear to me why the csID is needed in the first place and why it is empty.
This behavior is after upgrade 3.0.4 -> 3.1.3
Code: [Select]
$csID = CRM_Utils_Request::retrieve( 'csid', 'Integer', $this );
        $ssID = CRM_Utils_Request::retrieve( 'ssID', 'Integer', $this );
        $gID  = CRM_Utils_Request::retrieve( 'gid' , 'Integer', $this );
        //jsj
        drupal_set_message('csid '. $csID);

        list( $this->_customSearchID,
              $this->_customSearchClass,
              $formValues ) = CRM_Contact_BAO_SearchCustom::details( $csID, $ssID, $gID );
       
        if (! $this->_customSearchID ) {
            CRM_Core_Error::fatal( 'Could not get details for custom search.' );
        }

JoopSJ

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 2
Re: emails from Custom Search :: Can not find csID :: Fatal error
March 09, 2010, 04:40:03 am
As it can replicated on the demo I consider this a bug.
For tracking:
http://issues.civicrm.org/jira/browse/CRM-5934

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • emails from Custom Search :: Can not find csID :: Fatal error

This forum was archived on 2017-11-26.