Opened 8 years ago
Closed 8 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Templates | Version: | |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 11993: