Skip to content
Snippets Groups Projects
Commit 0295ee31 authored by Miniontoby's avatar Miniontoby :writing_hand_tone1:
Browse files

Fixed an issue with losing the ID at the school and user one

school one also missed the link change
parent e8d5945e
No related branches found
No related tags found
No related merge requests found
.vscode* .vscode
public/config/config.ini public/config/config.ini
\ No newline at end of file public/.phpdoc
\ No newline at end of file
...@@ -50,7 +50,7 @@ if ($i > 0) print end_table(); ...@@ -50,7 +50,7 @@ if ($i > 0) print end_table();
// on whether or not a username was submitted to the script. // on whether or not a username was submitted to the script.
$mode = empty($school->school_id) ? "Create" : "Edit"; $mode = empty($school->school_id) ? "Create" : "Edit";
print subtitle(sprintf(T_('%s a School'), T_($mode))); print subtitle(sprintf(T_('%s a School'), T_($mode)));
print start_form("{$app->issuer}manage_users/$mode"); print start_form("{$app->issuer}manage_schools/$mode?school_id={$school->school_id}");
// save the $mode variable in a hidden field, so we know whether this // save the $mode variable in a hidden field, so we know whether this
// is a new record or an update to an existing one. // is a new record or an update to an existing one.
......
...@@ -54,7 +54,7 @@ if ($i > 0) print end_table(); ...@@ -54,7 +54,7 @@ if ($i > 0) print end_table();
// on whether or not a username was submitted to the script. // on whether or not a username was submitted to the script.
$mode = empty($user->id) ? "Create" : "Edit"; $mode = empty($user->id) ? "Create" : "Edit";
print subtitle(sprintf(T_('%s a User'), T_($mode))); print subtitle(sprintf(T_('%s a User'), T_($mode)));
print start_form("{$app->issuer}manage_users/$mode"); print start_form("{$app->issuer}manage_users/$mode?id={$user->id}");
print start_table(); print start_table();
print table_row(T_("Firstname"), text_field("wfirstname", $user->firstname, 20, 20)); print table_row(T_("Firstname"), text_field("wfirstname", $user->firstname, 20, 20));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment