Skip to content
Snippets Groups Projects
Commit a97bbef5 authored by Jared Hancock's avatar Jared Hancock
Browse files

Merge pull request #199 from protich/issue/189


Fix team selection and cancel navigation for staff page

Reviewed-by: default avatarJared Hancock <jared@osticket.com>
parents a1f9aa07 79ac222c
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ if($staff && $_REQUEST['a']!='add'){ ...@@ -11,6 +11,7 @@ if($staff && $_REQUEST['a']!='add'){
$passwd_text='To reset the password enter a new one below'; $passwd_text='To reset the password enter a new one below';
$info=$staff->getInfo(); $info=$staff->getInfo();
$info['id']=$staff->getId(); $info['id']=$staff->getId();
$info['teams'] = $staff->getTeams();
$qstr.='&id='.$staff->getId(); $qstr.='&id='.$staff->getId();
}else { }else {
$title='Add New Staff'; $title='Add New Staff';
...@@ -295,6 +296,6 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); ...@@ -295,6 +296,6 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<p style="padding-left:250px;"> <p style="padding-left:250px;">
<input type="submit" name="submit" value="<?php echo $submit_text; ?>"> <input type="submit" name="submit" value="<?php echo $submit_text; ?>">
<input type="reset" name="reset" value="Reset"> <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> </p>
</form> </form>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment