Opened 7 years ago
Closed 7 years ago
#7769 closed defect (bug) (fixed)
[BP Nouveau] Prevent underscore errors if the activity post-form has been overriden
Reported by: | imath | Owned by: | imath |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Templates | Keywords: | has-patch 2nd-opinion commit |
Cc: |
Description
I can imagine situations where people would want to completely override the BP Nouveau Activity Post form from their theme adding a buddypress/activity/post-form.php
template in it.
In this case, underscore is throwing an error as the main element where is injected the Backbone Post Form is not available. I think it would be safer to avoid it checking for the main element before loading the Backbone views.
See attached patch.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 11993: