Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-16079

Civicrm OG Sync breaks with large group title

    Details

    • Documentation Required?:
      None

      Description

      I have civicrm 4.5.5, drupal 7.34 and organic groups 2.7 installed. I enabled civicrm_og_sync module to provide access to organic group admins to view civicrm contacts information. The acl works fine normally but breaks in one case. A group is not created when we have big group title.

      Steps to replicate:
      1) Enable civicrm, og and civicrm_og_sync on drupal
      2) Create a organic group with title larger than 70 characters

      Problem:
      No group is created in civicrm.

      I checked and found that the module is invoking CRM_Bridge_OG_Drupal::nodeapi with a params array which is then creating civicrm groups (one for users and other for administrators). When the title is bigger than 64 characters the group create api throws a error that "Value for title is N characters - This field has a maxlength of 64 characters" and doesn't create the group thus breaking the acl.

      I am attaching a patch which has a fix

        Attachments

          Activity

            People

            • Assignee:
              colemanw Coleman Watts
              Reporter:
              sadashiv Sadashiv Dalvi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: