Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.0.2, 3.1.2
-
Fix Version/s: 3.1.3
-
Component/s: SCORM
-
Testing Instructions:
-
Difficulty:Easy
-
Affected Branches:MOODLE_30_STABLE, MOODLE_31_STABLE
-
Fixed Branches:MOODLE_31_STABLE
-
Pull from Repository:
-
Pull Master Branch:master_
MDL-54575 -
Pull Master Diff URL:
Description
In the mod_scorm_mod_form::data_preprocessing() function ( vide moodle\mod\scorm\mod_form.php ), the intention is to append a percent sign to the displayed width and height values when certain conditions are met. However, for the height value, there is a typo that should be fixed.
// Fix: in isset(), check for keyword 'height' instead of 'width' |
if ( isset($defaultvalues['width'] ) |
&& (strpos($defaultvalues['height'], '%') === false) |
&& ($defaultvalues['height'] <= 100) ) |
{
|
$defaultvalues['height'] .= '%'; |
}
|