Skip to content
Snippets Groups Projects
Commit 79ac222c authored by Peter Rotich's avatar Peter Rotich
Browse files

Fix Cancel button and Teams selection on staff page

parent 9ceed946
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ if($staff && $_REQUEST['a']!='add'){
$passwd_text='To reset the password enter a new one below';
$info=$staff->getInfo();
$info['id']=$staff->getId();
$info['teams'] = $staff->getTeams();
$qstr.='&id='.$staff->getId();
}else {
$title='Add New Staff';
......@@ -295,6 +296,6 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<p style="padding-left:250px;">
<input type="submit" name="submit" value="<?php echo $submit_text; ?>">
<input type="reset" name="reset" value="Reset">
<input type="button" name="cancel" value="Cancel" onclick='window.location.href="departments.php"'>
<input type="button" name="cancel" value="Cancel" onclick='window.location.href="staff.php"'>
</p>
</form>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment