Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.7.2
-
Fix Version/s: 2.7.3
-
Component/s: Conditional activities
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_27_STABLE
-
Fixed Branches:MOODLE_27_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-47380-master -
Pull Master Diff URL:
Description
This happens in SVG unsupported browser like IE7,IE8 or old chrome/firefox browsers.
Steps to reproduce
-------------------------
1. Go to Course > click on an activity (e.g. Quiz)
2. Under the Administration block > Quiz Administration > Edit Settings
3. Expand Restrict Access section
4. The Eye icon and Delete icon will show a error picture.
Background
----------------
On IE8, the eye icon and delete icon has the src specified as "http://localhost/theme/image.php/clean/core/-1/i/show"
The icon image is not being resolved properly as they are being hardcoded in the \availability\yui\src\form\js\form.js file.
Workaround
----------------
Use M.util.image_url function to resolve image path!
1. Go to \availability\yui\src\form\js\form.js
2. Under the function M.core_availability.EyeIcon change the following:
// Set up button text and icon.
var suffix = individual ? '_individual' : '_all';
var setHidden = function()
;
var setShown = function()
;
3. Under M.core_availability.DeleteIcon ,change the following:
var img = Y.Node.create('<img src="' + M.util.image_url('t/delete', 'core') +
//M.cfg.wwwroot + '/theme/image.php/' + M.cfg.theme + '/core/' + M.cfg.themerev +
//'/t/delete"
'" alt="' + M.str.moodle['delete'] + '" />');
4. Shifter \availability\yui\src\form
5. Purge the Cache.
6. Cheers. Fix is tested with Win7, IE8.