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 (Moderator: Dave Greenberg) »
  • No Change Log Entry for New Contacts with Stand-alone Form
Pages: [1]

Author Topic: No Change Log Entry for New Contacts with Stand-alone Form  (Read 3533 times)

patachon

  • Guest
No Change Log Entry for New Contacts with Stand-alone Form
January 31, 2008, 03:13:48 pm
Hi,

I'm using CiviCRM 1.9 with Drupal 5.6.  I've got two stand-alone forms which don't seem to generate an initial Change Log date when people hit Submit:

http://debbiehalvorson.com/updates

http://debbiehalvorson.com/volunteer

Is there something I have to add (assuming I inadvertently took something out) in the Form?  Or is there something I have to set in the Admin?

Has anyone else come across this?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: No Change Log Entry for New Contacts with Stand-alone Form
February 01, 2008, 12:27:31 am
We have fixed this in CiviCRM v2.0 and will be available in next alpha release.

thanx

kurund
Found this reply helpful? Support CiviCRM

patachon

  • Guest
Re: No Change Log Entry for New Contacts with Stand-alone Form
February 01, 2008, 11:55:51 am
Yippie, I found a bug! 

Any chance of -- cough, cough -- backport or patch?

(MySQL might be a problemo where I host - Site5.)

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: No Change Log Entry for New Contacts with Stand-alone Form
February 02, 2008, 11:12:20 am
In CRM/Core/BAO/Log.php line 92 , add below code.

Quote
         if ( ! $userID ) {
            $userID  =  $contactID;
        }

HTH

kurund
Found this reply helpful? Support CiviCRM

patachon

  • Guest
Re: No Change Log Entry for New Contacts with Stand-alone Form
February 02, 2008, 06:42:06 pm
First thanks for the help.  Currently the Log.php file reads:

Quote
       91  if ( ! $userID ) {
       92      $session =& CRM_Core_Session::singleton( );
       93      $userID  =  $session->get( 'userID' );
       94   }

By adding the suggested code, would I end up with? :

Quote
       91  if ( ! $userID ) {
       92      if ( ! $userID ) {                /* new */
       93        $userID  =  $contactID;    /* new */
       94      }                                   /* new */
       95      $session =& CRM_Core_Session::singleton( );
       96      $userID  =  $session->get( 'userID' );
       97   }

Or should it be? :

Quote
       91  if ( ! $userID ) {
       93      $userID  =  $contactID;    /* new */
       95      $session =& CRM_Core_Session::singleton( );
       96      $userID  =  $session->get( 'userID' );
       97   }

Thanks for any help.

LEO

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: No Change Log Entry for New Contacts with Stand-alone Form
February 03, 2008, 11:18:32 am
Quote
        if ( ! $userID ) {                                                                                                                                                     
            $session =& CRM_Core_Session::singleton( );                                                                                                                       
            $userID  =  $session->get( 'userID' );                                                                                                                             
        }                                                                                                                                                                     
                                                                                                                                                                               
        if ( ! $userID ) {                                                                                                                                                     
            $userID  =  $contactID;                                                                                                                                           
        }   
             

kurund
Found this reply helpful? Support CiviCRM

patachon

  • Guest
Re: No Change Log Entry for New Contacts with Stand-alone Form
February 03, 2008, 05:29:51 pm
Thanks.   LEO

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • No Change Log Entry for New Contacts with Stand-alone Form

This forum was archived on 2017-11-26.