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 »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Problem using og sync in post method
Pages: [1]

Author Topic: Problem using og sync in post method  (Read 1069 times)

rahul

  • Guest
Problem using og sync in post method
June 23, 2009, 06:43:29 am
 This chunk of code always return false. I am  not getting in this function message are written
// make sure that acls are not enabled
we disable the acl and then try it still give problem.

if ( ! CRM_Bridge_OG_Utils::syncFromCiviCRM( ) ) {
           return;
    }

Secondly,  Comment those line to execute further functionality for adding user in group in civicrm should add in drupal.and similarly for delete.

but in post method in civicrm_og_sync.module

 case 'GroupContact':
        require_once 'CRM/Bridge/OG/CiviCRM.php';
        switch ( $op ) {
        case 'create':
        case 'edit':
            if ( ! _civicrm_og_sync_set_context( 'civicrm' ) ) {
                return;
            }
           
            CRM_Bridge_OG_Drupal::groupContact( $objectID, $objectRef, 'add' );
            break;

        case 'delete':
            if ( ! _civicrm_og_sync_set_context( 'civicrm' ) ) {
                return;
            }
            CRM_Bridge_OG_Drupal::groupContact( $objectID, $objectRef, 'delete' );
            break;


In drupal.php no such function declare it is in civicrm.php


 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Problem using og sync in post method

This forum was archived on 2017-11-26.