|
From: Benjamin C. <bc...@us...> - 2002-05-01 12:12:20
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv18890/inc
Modified Files:
functions.php
Log Message:
Fixes bug 550784 - Project getting reset when editing a bug from an inactive project
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- functions.php 10 Apr 2002 15:21:07 -0000 1.20
+++ functions.php 1 May 2002 12:12:17 -0000 1.21
@@ -70,9 +70,9 @@
'status' => $querystart.' where sort_order > 0 order by sort_order',
'resolution' => $querystart.' where sort_order > 0 order by sort_order',
'project' => $perm->have_perm('Admin')
- ? $querystart." where active > 0 order by {$box}_name"
+ ? $querystart." where (active > 0 or project_id in ($selected)) order by {$box}_name"
: $querystart." where project_id not in ($restricted_projects)".
- " and active > 0 order by {$box}_name",
+ " and (active > 0 or project_id in ($selected)) order by {$box}_name",
'component' => $querystart." where project_id = $project and active = 1 order by {$box}_name",
'version' => $querystart." where project_id = $project and active = 1 order by {$box}_id desc"
);
|