[buddypress-trac] [BuddyPress Trac] #7304: xProfile Group field

buddypress-trac noreply at wordpress.org
Tue Oct 25 19:06:20 UTC 2016


#7304: xProfile Group field
-------------------------------+------------------
 Reporter:  danbp              |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:
Component:  Extended Profile   |     Version:  2.7
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------

Comment (by danbp):

 Thanks @dcavins,

 using your snippet throws 2 notices, but remove the tab.

 - Undefined offset: 1 in...bp-xprofile\bp-xprofile-template.php on line
 1033
 - Trying to get property of non-object in bp-xprofile\bp-xprofile-
 template.php on line 1033

 Problem is that the i test with 3 groups. All groups have some content.
 id 1 Base
 id 2 ABC
 id 3 XYZ

 I don't want id 2 to show - your snippet as is.

 When i'm on the edit screen, i got the notices.

 Changing the id to 3. No tab 3 (ok), no notices (ok)

 And finally, change to hide tab id 1.

 Again, notices on edit screen (the first with Undefined offset: 0 ), tab 1
 isn't showing but his content appears under tab 2 and i have no tab 3.

 To resume, the only tab correctly hidden when using multiple group tabs is
 the last one.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7304#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list