forked from CIT/Vmeda.Online
		
	MOBILE-3320 database: Fix advanced search entries
This commit is contained in:
		
							parent
							
								
									4c870c072c
								
							
						
					
					
						commit
						fd49ee7057
					
				@ -498,10 +498,12 @@ export class AddonModDataIndexComponent extends CoreCourseModuleMainActivityComp
 | 
			
		||||
        };
 | 
			
		||||
 | 
			
		||||
        // Try to find page number and offset of the entry.
 | 
			
		||||
        if (!this.search.searching) {
 | 
			
		||||
            const pageXOffset = this.entries.findIndex((entry) => entry.id == entryId);
 | 
			
		||||
            if (pageXOffset >= 0) {
 | 
			
		||||
                params.offset = this.search.page * AddonModDataProvider.PER_PAGE + pageXOffset;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        CoreNavigator.navigateToSitePath(
 | 
			
		||||
            `${AddonModDataModuleHandlerService.PAGE_NAME}/${this.courseId}/${this.module.id}/${entryId}`,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user