MDL-36985 atto: removeorphaneddrafts should be optional

This commit is contained in:
John Okely
2017-08-24 08:28:55 +08:00
parent 8839739680
commit 7757d27805
@@ -47,7 +47,7 @@ class atto_managefiles_manage_form extends moodleform {
$elementid = $this->_customdata['elementid'];
$options = $this->_customdata['options'];
$files = $this->_customdata['files'];
$removeorphaneddrafts = $this->_customdata['removeorphaneddrafts'];
$removeorphaneddrafts = $this->_customdata['removeorphaneddrafts'] ?? false;
$mform->addElement('header', 'filemanagerhdr', get_string('filemanager', 'atto_managefiles'));