Page 1 of 1

Assign bugs to viewer

Posted: 06 Apr 2006, 12:42
by mecha
Hi,

I'd like to assign bugs to viwer (or reporter).

So i've write these lines :

Code: Select all

	# access level needed to be able to be listed in the assign to field.
	$g_handle_bug_threshold			= VIEWER;
	# access level needed to show the Assign To: button bug_view*_page or
	#  the Assigned list in bug_update*_page.
	#  This allows control over who can route bugs
	# This defaults to $g_handle_bug_threshold
	$g_update_bug_assign_threshold		 = '%handle_bug_threshold%';

	# Access level required to be able to handle sponsored issues.
	$g_handle_sponsored_bugs_threshold = VIEWER;

	# Access level required to be able to assign a sponsored issue to a user with access level
	# greater or equal to 'handle_sponsored_bugs_threshold'.
	$g_assign_sponsored_bugs_threshold = VIEWER;
Any idea why it doesn't work?

Posted: 06 Apr 2006, 12:55
by Narcissus
Hi Mecha:

I would hazard a guess and say, instead of:
$g_update_bug_assign_threshold = '%handle_bug_threshold%';

try:
$g_update_bug_assign_threshold = $g_handle_bug_threshold;

Using what you currently have, it would parse as a string, instead of a number as required.

Hopefully that will help!
Lincoln.

Posted: 06 Apr 2006, 13:06
by Narcissus
Having said that... if you want anyone to be able to have an issue assigned to them, why don't you just assign developer access to everyone?

Then you won't have any of these problems...