Details
-
Type:
Bug
-
Status: Done/Fixed
-
Priority:
Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.21-2.2.3
-
Fix Version/s: 4.7.21-2.3.0
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Verified?:No
Description
As of CiviCRM 4.7.31, CiviVolunteer's Backbone interfaces can no longer be loaded within Angular.
Visiting http://vol.localhost/civicrm/vol/#/volunteer/manage shows an endless spinner, The console shows:
TypeError: Cannot read property 'Marionette' of undefined
at eval (eval at <anonymous> (jquery.js?p5uub5:349), <anonymous>:2:33)
at eval (<anonymous>)
at jquery.js?p5uub5:349
at Function.globalEval (jquery.js?p5uub5:350)
at text script (jquery.js?p5uub5:10372)
at ajaxConvert (jquery.js?p5uub5:9335)
at done (jquery.js?p5uub5:9789)
at XMLHttpRequest.callback (jquery.js?p5uub5:10311)
TypeError: Cannot read property 'trigger' of undefined
at volunteer.js?r=bhtOs:314
at processQueue (angular.js?p5uub5:16696)
at angular.js?p5uub5:16712
at Scope.$eval (angular.js?p5uub5:17994)
at Scope.$digest (angular.js?p5uub5:17808)
at angular.js?p5uub5:18033
at completeOutstandingRequest (angular.js?p5uub5:6045)
at angular.js?p5uub5:6324
Likewise, if you create/edit a project and hit either of the save buttons (which should, depending on your choice, open a Backbone-based modal or take you back to the aforementioned "Manage" screen), the same messages are displayed.
The problem seems to have been caused by the usage of `Backbone.noConflict()` introduced in CiviCRM 4.7.31.
See related org.civicrm.angularprofiles issue.