forked from EVOgeek/Vmeda.Online
		
	MOBILE-4191 scorm: Make options field optional
This commit is contained in:
		
							parent
							
								
									17b9b23fe9
								
							
						
					
					
						commit
						59a93ee428
					
				| @ -1124,10 +1124,12 @@ export class AddonModScormProvider { | |||||||
|             currentScorm.warningMessage = warning?.message; |             currentScorm.warningMessage = warning?.message; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         const scormOptions = CoreUtils.objectToKeyValueMap(response.options, 'name', 'value'); |         if (response.options) { | ||||||
|  |             const scormOptions = CoreUtils.objectToKeyValueMap(response.options, 'name', 'value'); | ||||||
| 
 | 
 | ||||||
|         if (scormOptions.scormstandard) { |             if (scormOptions.scormstandard) { | ||||||
|             currentScorm.scormStandard = Number(scormOptions.scormstandard); |                 currentScorm.scormStandard = Number(scormOptions.scormstandard); | ||||||
|  |             } | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         currentScorm.moduleurl = options.moduleUrl; |         currentScorm.moduleurl = options.moduleUrl; | ||||||
| @ -1871,7 +1873,7 @@ export type AddonModScormGetScormsByCoursesWSParams = { | |||||||
|  * Data returned by mod_scorm_get_scorms_by_courses WS. |  * Data returned by mod_scorm_get_scorms_by_courses WS. | ||||||
|  */ |  */ | ||||||
| export type AddonModScormGetScormsByCoursesWSResponse = { | export type AddonModScormGetScormsByCoursesWSResponse = { | ||||||
|     options: AddonModScormOptions[]; |     options?: AddonModScormOptions[]; // @since v4.3. Scorm options
 | ||||||
|     scorms: AddonModScormScormWSData[]; |     scorms: AddonModScormScormWSData[]; | ||||||
|     warnings?: CoreWSExternalWarning[]; |     warnings?: CoreWSExternalWarning[]; | ||||||
| }; | }; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user