forked from EVOgeek/Vmeda.Online
		
	Merge pull request #3150 from crazyserver/MOBILE-3968
MOBILE-3968 dashboard: Temp hack to remove forced myoverview MDL-72092
This commit is contained in:
		
						commit
						6b9de713f7
					
				| @ -76,6 +76,14 @@ export class CoreCoursesDashboardProvider { | ||||
|         } | ||||
|         const result = await site.read<CoreBlockGetDashboardBlocksWSResponse>('core_block_get_dashboard_blocks', params, preSets); | ||||
| 
 | ||||
|         if (site.isVersionGreaterEqualThan('4.0')) { | ||||
|             // Temporary hack to have course overview on 3.9.5 but not on 4.0 onwards.
 | ||||
|             // To be removed in a near future.
 | ||||
|             // Remove myoverview when is forced. See MDL-72092.
 | ||||
|             result.blocks = result.blocks.filter((block) => | ||||
|                 block.instanceid != 0 || block.name != 'myoverview' || block.region != 'forced'); | ||||
|         } | ||||
| 
 | ||||
|         return result.blocks || []; | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user