plugin->test_constructor_gatekeeper(); $id = get_input("id"); $proctor = get_input("proctor", ""); $handler = get_input('handler', 'assessments'); $type = "assessment"; $input_values = get_inputs(); $_SESSION['input_values'] = $input_values; if (!$proctor) { $TeKe->add_system_message(_("Choose proctor."), "error"); forward(WWW_ROOT."{$handler}/{$type}/${id}/proctor"); } $assessment = $TeKe->plugin->loadType("assessment", $id); $assessment->setProctor($proctor); $assessment->saveProctor(); /*$obj_id = $obj->build(get_inputs()); if (!$obj_id) { $TeKe->add_system_message(_("Not saved."), 'error'); forward(WWW_ROOT."{$handler}/{$type}/${id}/edit"); } $TeKe->add_system_message(_("Saved"));*/ forward(WWW_ROOT."{$handler}/view"); ?>