diff --git a/include/staff/staff.inc.php b/include/staff/staff.inc.php index ab10d7d1955c090adeef4887c319045e7190265a..5e13d943c576b53286297ca0c36865ffefceb14f 100644 --- a/include/staff/staff.inc.php +++ b/include/staff/staff.inc.php @@ -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>