grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026retrieve($_POST['record']); print_r($_POST); unset($_POST['id']); foreach ($focus->column_fields as $field) { if (isset($_POST[$field])) { $value = $_POST[$field]; $focus->$field = $value; } } $check_notify = false; $focus->save($check_notify); $return_id = $focus->id; $focus->clear_module_relationship($return_id); $focus->set_module_relationship($return_id, $allow_modules, 1); $focus->set_module_relationship($return_id, $disallow_modules, 0); if (isset($_POST['return_module']) && $_POST['return_module'] != "") { $return_module = $_POST['return_module']; } else { $return_module = "Roles"; } if (isset($_POST['return_action']) && $_POST['return_action'] != "") { $return_action = $_POST['return_action']; } else { $return_action = "DetailView"; } if (isset($_POST['return_id']) && $_POST['return_id'] != "") { $return_id = $_POST['return_id']; } $GLOBALS['log']->debug("Saved record with id of ".$return_id); header("Location: index.php?action=$return_action&module=$return_module&record=$return_id");