Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.8
-
Fix Version/s: None
-
Component/s: HTML Editor
-
Labels:None
-
Environment:All platforms
-
Affected Branches:MOODLE_18_STABLE
Description
The cause of this problem is following.
lib/editor/htmlarea/coursefiles.php, Line:123
function set_rename(strfile) {
var upper = window.parent.document;
// upper.getElementById('irename').value = strfile;
upper.getElementById('irename').file.value = strfile;
return true;
}
upper.getElementById('irename').value
-> upper.getElementById('irename').file.value
function reset_value() has a same mistake.
// upper.getElementById('irename').value = 'xx';
upper.getElementById('irename').file.value = '';
I think that the value for clearing file is nul (empty) instead of 'xx'.