Commit 7b212c53 authored by Robert Lyon's avatar Robert Lyon

Bug 1479434: $SESSION undefined for validation step

Need to have $SESSION available to be able to send error to it

behatnotneeded

Change-Id: Ie298c95a8ef9a4fdc5589a6934110fc86c1e771d
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 8df87b1d
......@@ -169,7 +169,7 @@ $form = pieform(array(
));
function progressbarform_validate(Pieform $form, $values) {
global $USER;
global $SESSION, $USER;
$inst = $values['institution'];
if (empty($inst) || !$USER->can_edit_institution($inst)) {
$SESSION->add_error_msg(get_string('notadminforinstitution', 'admin'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment