Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.2, 3.1.2
-
MOODLE_30_STABLE, MOODLE_31_STABLE
-
MOODLE_31_STABLE
-
master_
MDL-54575 -
Easy
-
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'] .= '%'; |
}
|