Plugin Directory

Changeset 3376402


Ignore:
Timestamp:
10/10/2025 04:48:14 PM (5 months ago)
Author:
needle
Message:

Release 0.5.5

Location:
bp-groups-civicrm-sync/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • bp-groups-civicrm-sync/trunk/bp-groups-civicrm-sync.php

    r3335397 r3376402  
    55 * Plugin Name:       BP Groups CiviCRM Sync
    66 * Description:       Enables two-way synchronisation between BuddyPress Groups and CiviCRM Groups.
    7  * Version:           0.5.4
     7 * Version:           0.5.5
    88 * Plugin URI:        https://github.com/christianwach/bp-groups-civicrm-sync
    99 * GitHub Plugin URI: https://github.com/christianwach/bp-groups-civicrm-sync
     
    3636
    3737// Set our version here.
    38 define( 'BP_GROUPS_CIVICRM_SYNC_VERSION', '0.5.4' );
     38define( 'BP_GROUPS_CIVICRM_SYNC_VERSION', '0.5.5' );
    3939
    4040// Store reference to this file.
  • bp-groups-civicrm-sync/trunk/includes/buddypress/class-buddypress-group.php

    r3035828 r3376402  
    464464        if ( is_int( $group ) ) {
    465465            $group = $this->plugin->civicrm->group->get_by_id( $group );
     466            if ( empty( $group ) ) {
     467                return false;
     468            }
    466469        }
    467470
  • bp-groups-civicrm-sync/trunk/includes/civicrm/class-civicrm-acl.php

    r3035828 r3376402  
    373373        // Init return.
    374374        $success = false;
     375
     376        // Init local vars.
     377        $acl_deleted             = false;
     378        $acl_entity_role_deleted = false;
     379        $acl_role_deleted        = false;
     380
     381        // Bail if there is no ACL Group data.
     382        if ( empty( $acl_group ) ) {
     383            return $success;
     384        }
    375385
    376386        // First get the existing "ACL Role".
  • bp-groups-civicrm-sync/trunk/includes/civicrm/class-civicrm-group-contact.php

    r3335397 r3376402  
    325325            // Remove this Group membership.
    326326            $member_group_contact = $this->membership_delete( $member_group_params );
    327             if ( is_bool( $member_group_contact ) ) {
    328                 $member_group_contact = [];
    329             }
    330 
     327
     328        }
     329
     330        // Make sure we have an array.
     331        if ( is_bool( $member_group_contact ) ) {
     332            $member_group_contact = [];
    331333        }
    332334
     
    386388            // Remove this Group membership.
    387389            $acl_group_contact = $this->membership_delete( $acl_group_params );
    388             if ( is_bool( $acl_group_contact ) ) {
    389                 $acl_group_contact = [];
    390             }
    391 
     390
     391        }
     392
     393        // Make sure we have an array.
     394        if ( is_bool( $acl_group_contact ) ) {
     395            $acl_group_contact = [];
    392396        }
    393397
     
    582586        // Remove Members from CiviCRM ACL Group.
    583587        foreach ( $contacts as $contact ) {
    584             $group_params  = [
     588            $group_params = [
    585589                'group_id'   => $acl_group_id,
    586590                'contact_id' => $contact['contact_id'],
  • bp-groups-civicrm-sync/trunk/languages/bp-groups-civicrm-sync.pot

    r3335397 r3376402  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: BP Groups CiviCRM Sync 0.5.4a\n"
     5"Project-Id-Version: BP Groups CiviCRM Sync 0.5.5a\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/bp-groups-civicrm-sync\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-07-28T13:30:26+00:00\n"
     12"POT-Creation-Date: 2025-10-10T16:46:04+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    236236msgstr ""
    237237
    238 #: includes/buddypress/class-buddypress-group.php:622
     238#: includes/buddypress/class-buddypress-group.php:625
    239239msgid "CiviCRM"
    240240msgstr ""
    241241
    242 #: includes/buddypress/class-buddypress-group.php:630
     242#: includes/buddypress/class-buddypress-group.php:633
    243243msgid "ACL"
    244244msgstr ""
    245245
    246 #: includes/buddypress/class-buddypress-group.php:708
     246#: includes/buddypress/class-buddypress-group.php:711
    247247msgid "Member Group Settings"
    248248msgstr ""
    249249
    250 #: includes/buddypress/class-buddypress-group.php:721
     250#: includes/buddypress/class-buddypress-group.php:724
    251251msgid "Member Group Contacts"
    252252msgstr ""
    253253
    254 #: includes/buddypress/class-buddypress-group.php:743
     254#: includes/buddypress/class-buddypress-group.php:746
    255255msgid "ACL Group Settings"
    256256msgstr ""
    257257
    258 #: includes/buddypress/class-buddypress-group.php:756
     258#: includes/buddypress/class-buddypress-group.php:759
    259259msgid "ACL Group Contacts"
    260260msgstr ""
     
    301301msgstr ""
    302302
    303 #: includes/civicrm/class-civicrm-acl.php:551
     303#: includes/civicrm/class-civicrm-acl.php:561
    304304msgid "An ID must be present to update an ACL Role."
    305305msgstr ""
    306306
    307 #: includes/civicrm/class-civicrm-acl.php:588
     307#: includes/civicrm/class-civicrm-acl.php:598
    308308msgid "An ID must be present to delete an ACL Role."
    309309msgstr ""
    310310
    311 #: includes/civicrm/class-civicrm-acl.php:905
     311#: includes/civicrm/class-civicrm-acl.php:915
    312312msgid "An ID must be present to update an ACL Entity Role."
    313313msgstr ""
    314314
    315 #: includes/civicrm/class-civicrm-acl.php:942
     315#: includes/civicrm/class-civicrm-acl.php:952
    316316msgid "An ID must be present to delete an ACL Entity Role."
    317317msgstr ""
    318318
    319 #: includes/civicrm/class-civicrm-acl.php:1114
     319#: includes/civicrm/class-civicrm-acl.php:1124
    320320msgid "An ID must be present to update an ACL."
    321321msgstr ""
    322322
    323 #: includes/civicrm/class-civicrm-acl.php:1151
     323#: includes/civicrm/class-civicrm-acl.php:1161
    324324msgid "An ID must be present to delete an ACL."
    325325msgstr ""
     
    362362
    363363#: includes/civicrm/class-civicrm-group-contact.php:122
    364 #: includes/civicrm/class-civicrm-group-contact.php:850
    365 #: includes/civicrm/class-civicrm-group-contact.php:904
     364#: includes/civicrm/class-civicrm-group-contact.php:854
     365#: includes/civicrm/class-civicrm-group-contact.php:908
    366366#: includes/civicrm/class-civicrm-group.php:367
    367367#: includes/civicrm/class-civicrm-group.php:430
  • bp-groups-civicrm-sync/trunk/readme.txt

    r3335397 r3376402  
    55Requires at least: 4.9
    66Tested up to: 6.8
    7 Stable tag: 0.5.4
     7Stable tag: 0.5.5
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.