File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,9 @@ angular.module('mm.addons.mod_glossary')
172172 promises . push ( fetchInvalidate . apply ( this , args ) ) ;
173173 promises . push ( $mmaModGlossary . invalidateCourseGlossaries ( courseId ) ) ;
174174 }
175+ if ( glossary && glossary . id ) {
176+ promises . push ( $mmaModGlossary . invalidateCategories ( glossary . id ) ) ;
177+ }
175178
176179 return $q . all ( promises ) . then ( function ( ) {
177180 limitFrom = 0 ;
Original file line number Diff line number Diff line change @@ -508,7 +508,7 @@ angular.module('mm.addons.mod_glossary')
508508 */
509509 self . invalidateCategories = function ( glossaryId , siteId ) {
510510 return $mmSitesManager . getSite ( siteId ) . then ( function ( site ) {
511- return site . invalidateWsCacheForKey ( self . _getCategoriesCacheKey ( glossaryId ) ) ;
511+ return site . invalidateWsCacheForKey ( getCategoriesCacheKey ( glossaryId ) ) ;
512512 } ) ;
513513 } ;
514514
You can’t perform that action at this time.
0 commit comments