From e4e001c0bb15b347c3e6a99d77c07f4922da4ac7 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 16 Nov 2005 06:13:44 +0000 Subject: [PATCH] r564: Respect defaults from bugsys->options --- newreport.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/newreport.php b/newreport.php index 9c377f6..9fe9116 100755 --- a/newreport.php +++ b/newreport.php @@ -155,9 +155,9 @@ if ($_REQUEST['do'] == 'add') if (can_perform('canchangestatus')) { - $select['priority'] = construct_datastore_select('priority', 'priority', 'priorityid'); - $select['status'] = construct_datastore_select('status', 'status', 'statusid'); - $select['resolution'] = construct_datastore_select('resolution', 'resolution', 'resolutionid'); + $select['priority'] = construct_datastore_select('priority', 'priority', 'priorityid', $bugsys->options['defaultpriority']); + $select['status'] = construct_datastore_select('status', 'status', 'statusid', $bugsys->options['defaultstatus']); + $select['resolution'] = construct_datastore_select('resolution', 'resolution', 'resolutionid', $bugsys->options['defaultresolve']); } $show['assign'] = ((can_perform('canassign')) ? true : false); @@ -168,6 +168,7 @@ if ($_REQUEST['do'] == 'add') { $value = $dev['userid']; $label = construct_user_display($dev, false); + $selected = ($dev['userid'] == $bugsys->options['defaultassign']); eval('$select[dev] .= "' . $template->fetch('selectoption') . '";'); } } -- 2.43.5