Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Re: error backing up courses - "setting_invalid_ui_label"

$
0
0

by Yusuf Badran.  

Hi Edward,


This might not be ideal as it's a change to core code, but I hope this helps. On line 152 of backup_ui_setting.class.php, it looks like Moodle will throw this error if there is any non-text there.

I commented out part of that line as shown below with /* */ and it will now only throw the error if the label is empty.


        if ($label === ''/* || $label !== clean_param($label, PARAM_TEXT)*/) {

            throw new base_setting_ui_exception('setting_invalid_ui_label');

        }

Yusuf


Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>