Moodle

Can not rename file/folder name on FileBrowser

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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

Activity

Hide
Tatsuya Shirai added a comment -

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'.

Show
Tatsuya Shirai added a comment - 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'.
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: