MDL-55805 admin: Notices displayed on validation errors
Part of MDL-55071
This commit is contained in:
committed by
Dan Poltawski
parent
32e3a8dd8c
commit
d5732f7f40
+1
-1
@@ -7663,7 +7663,7 @@ function format_admin_setting($setting, $title='', $form='', $description='', $l
|
||||
$context->error = '';
|
||||
$adminroot = admin_get_root();
|
||||
if (array_key_exists($context->fullname, $adminroot->errors)) {
|
||||
$context->error = $adminroot->errors[$fullname]->error;
|
||||
$context->error = $adminroot->errors[$context->fullname]->error;
|
||||
}
|
||||
|
||||
$context->id = 'admin-' . $setting->name;
|
||||
|
||||
Reference in New Issue
Block a user