Changeset 3376402
- Timestamp:
- 10/10/2025 04:48:14 PM (5 months ago)
- Location:
- bp-groups-civicrm-sync/trunk
- Files:
-
- 6 edited
-
bp-groups-civicrm-sync.php (modified) (2 diffs)
-
includes/buddypress/class-buddypress-group.php (modified) (1 diff)
-
includes/civicrm/class-civicrm-acl.php (modified) (1 diff)
-
includes/civicrm/class-civicrm-group-contact.php (modified) (3 diffs)
-
languages/bp-groups-civicrm-sync.pot (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bp-groups-civicrm-sync/trunk/bp-groups-civicrm-sync.php
r3335397 r3376402 5 5 * Plugin Name: BP Groups CiviCRM Sync 6 6 * Description: Enables two-way synchronisation between BuddyPress Groups and CiviCRM Groups. 7 * Version: 0.5. 47 * Version: 0.5.5 8 8 * Plugin URI: https://github.com/christianwach/bp-groups-civicrm-sync 9 9 * GitHub Plugin URI: https://github.com/christianwach/bp-groups-civicrm-sync … … 36 36 37 37 // Set our version here. 38 define( 'BP_GROUPS_CIVICRM_SYNC_VERSION', '0.5. 4' );38 define( 'BP_GROUPS_CIVICRM_SYNC_VERSION', '0.5.5' ); 39 39 40 40 // Store reference to this file. -
bp-groups-civicrm-sync/trunk/includes/buddypress/class-buddypress-group.php
r3035828 r3376402 464 464 if ( is_int( $group ) ) { 465 465 $group = $this->plugin->civicrm->group->get_by_id( $group ); 466 if ( empty( $group ) ) { 467 return false; 468 } 466 469 } 467 470 -
bp-groups-civicrm-sync/trunk/includes/civicrm/class-civicrm-acl.php
r3035828 r3376402 373 373 // Init return. 374 374 $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 } 375 385 376 386 // First get the existing "ACL Role". -
bp-groups-civicrm-sync/trunk/includes/civicrm/class-civicrm-group-contact.php
r3335397 r3376402 325 325 // Remove this Group membership. 326 326 $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 = []; 331 333 } 332 334 … … 386 388 // Remove this Group membership. 387 389 $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 = []; 392 396 } 393 397 … … 582 586 // Remove Members from CiviCRM ACL Group. 583 587 foreach ( $contacts as $contact ) { 584 $group_params = [588 $group_params = [ 585 589 'group_id' => $acl_group_id, 586 590 'contact_id' => $contact['contact_id'], -
bp-groups-civicrm-sync/trunk/languages/bp-groups-civicrm-sync.pot
r3335397 r3376402 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: BP Groups CiviCRM Sync 0.5. 4a\n"5 "Project-Id-Version: BP Groups CiviCRM Sync 0.5.5a\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/bp-groups-civicrm-sync\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "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" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 236 236 msgstr "" 237 237 238 #: includes/buddypress/class-buddypress-group.php:62 2238 #: includes/buddypress/class-buddypress-group.php:625 239 239 msgid "CiviCRM" 240 240 msgstr "" 241 241 242 #: includes/buddypress/class-buddypress-group.php:63 0242 #: includes/buddypress/class-buddypress-group.php:633 243 243 msgid "ACL" 244 244 msgstr "" 245 245 246 #: includes/buddypress/class-buddypress-group.php:7 08246 #: includes/buddypress/class-buddypress-group.php:711 247 247 msgid "Member Group Settings" 248 248 msgstr "" 249 249 250 #: includes/buddypress/class-buddypress-group.php:72 1250 #: includes/buddypress/class-buddypress-group.php:724 251 251 msgid "Member Group Contacts" 252 252 msgstr "" 253 253 254 #: includes/buddypress/class-buddypress-group.php:74 3254 #: includes/buddypress/class-buddypress-group.php:746 255 255 msgid "ACL Group Settings" 256 256 msgstr "" 257 257 258 #: includes/buddypress/class-buddypress-group.php:75 6258 #: includes/buddypress/class-buddypress-group.php:759 259 259 msgid "ACL Group Contacts" 260 260 msgstr "" … … 301 301 msgstr "" 302 302 303 #: includes/civicrm/class-civicrm-acl.php:5 51303 #: includes/civicrm/class-civicrm-acl.php:561 304 304 msgid "An ID must be present to update an ACL Role." 305 305 msgstr "" 306 306 307 #: includes/civicrm/class-civicrm-acl.php:5 88307 #: includes/civicrm/class-civicrm-acl.php:598 308 308 msgid "An ID must be present to delete an ACL Role." 309 309 msgstr "" 310 310 311 #: includes/civicrm/class-civicrm-acl.php:9 05311 #: includes/civicrm/class-civicrm-acl.php:915 312 312 msgid "An ID must be present to update an ACL Entity Role." 313 313 msgstr "" 314 314 315 #: includes/civicrm/class-civicrm-acl.php:9 42315 #: includes/civicrm/class-civicrm-acl.php:952 316 316 msgid "An ID must be present to delete an ACL Entity Role." 317 317 msgstr "" 318 318 319 #: includes/civicrm/class-civicrm-acl.php:11 14319 #: includes/civicrm/class-civicrm-acl.php:1124 320 320 msgid "An ID must be present to update an ACL." 321 321 msgstr "" 322 322 323 #: includes/civicrm/class-civicrm-acl.php:11 51323 #: includes/civicrm/class-civicrm-acl.php:1161 324 324 msgid "An ID must be present to delete an ACL." 325 325 msgstr "" … … 362 362 363 363 #: includes/civicrm/class-civicrm-group-contact.php:122 364 #: includes/civicrm/class-civicrm-group-contact.php:85 0365 #: includes/civicrm/class-civicrm-group-contact.php:90 4364 #: includes/civicrm/class-civicrm-group-contact.php:854 365 #: includes/civicrm/class-civicrm-group-contact.php:908 366 366 #: includes/civicrm/class-civicrm-group.php:367 367 367 #: includes/civicrm/class-civicrm-group.php:430 -
bp-groups-civicrm-sync/trunk/readme.txt
r3335397 r3376402 5 5 Requires at least: 4.9 6 6 Tested up to: 6.8 7 Stable tag: 0.5. 47 Stable tag: 0.5.5 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.