[buddypress-trac] [BuddyPress Trac] #7593: Additional groups on registration, error on signup

buddypress-trac noreply at wordpress.org
Sat Sep 2 20:26:59 UTC 2017


#7593: Additional groups on registration, error on signup
----------------------------+-----------------------------
 Reporter:  devitate        |      Owner:  slaFFik
     Type:  defect (bug)    |     Status:  new
 Priority:  high            |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:  dev-feedback
----------------------------+-----------------------------
 When I add a group other than 1, to the registration, the signups page
 errors because they are not available fields in the loop.  I found lines
 aprx #2045 - 55 of `class-bp-members-admin.php`, it only seems to
 reference 1 group.  Would it be easier to just loop through all the groups
 like?

 {{{

 $field_groups = bp_xprofile_get_groups( array(
  'profile_group_id' => 1,
  'exclude_fields' => 1,
  'update_meta_cache' => false,
  'fetch_fields' => true,
 ));

 foreach( $field_groups as $fg ) {
    foreach( $fg->fields as $f ) {
        $fdata[ $f->id ] = $f->name;
   }
 }

 /*
   $fields = $fields[0]->fields;
   foreach( $fields as $f ) {
      $fdata[ $f->id ] = $f->name;
   }
 */

 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7593>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list