From 79ac222cbcced067501c991dee10715d12aaafd9 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Thu, 2 Aug 2012 15:39:50 -0400 Subject: [PATCH] Fix Cancel button and Teams selection on staff page --- include/staff/staff.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/staff/staff.inc.php b/include/staff/staff.inc.php index ab10d7d19..5e13d943c 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> -- GitLab