[buddypress-trac] [BuddyPress Trac] #6050: Activity admin JS referenceError 'postboxes'

buddypress-trac noreply at wordpress.org
Fri Nov 28 10:30:30 UTC 2014

#6050: Activity admin JS referenceError 'postboxes'
 Reporter:  hnla          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Activity      |    Version:
 Severity:  normal        |   Keywords:  has-patch
 Reported on the forum  (https://buddypress.org/support/topic/activity-
 referenceerror-postboxes-not-defined/) to be causing an issue with another
 plugin causing it to fail!

 In our admin.js bp-activity ( line 170 )we run:
 `postboxes.add_postbox_toggles( bp_activity_admin_vars.page );`

 Along with comment about re-setting the metabox toggles so they are still
 collapsible in single activity admin screens; however this runs on the top
 level screen as well.

 As a workaround I suggested this fix to check if postboxes is defined.

 This appears to stop the error notice and single edit screens metabox
 toggle still works.

 I'm not sure really why we need this postbox toggle reset, guess there's a
 reason but it's not apparent.

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

More information about the buddypress-trac mailing list