bug assign is a kind of issute update.

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
kwon37xi
Posts: 7
Joined: 07 Feb 2007, 03:17

bug assign is a kind of issute update.

Post by kwon37xi »

When isssue is updated , issue_update_notify custom function is called.
But when an issue is assigned, it does not.
I think it's a kind of bug.

when an issue is assigned, it means issue state is changed, so issue_update_notify custom function should be called.

anyway, because of this, I change a source a bit.

I change the bottom of bug_assign.php to the following

Code: Select all

	bug_assign( $f_bug_id, $f_handler_id );
	helper_call_custom_function( 'issue_update_notify', array( $f_bug_id ) );

	print_successful_redirect_to_bug( $f_bug_id );
?>

I just added helper_call_custom_function( 'issue_update_notify', array( $f_bug_id ) );.

I hope this code added to 1.1.0a3.
Thanks.
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post by deboutv »

No I don't think that it is a bug.

When you assign an issue, you assign it and not update it (update is used to change the content: summary, description, version...).
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
kwon37xi
Posts: 7
Joined: 07 Feb 2007, 03:17

when a bug assigned, the issue status is changed.

Post by kwon37xi »

When you assign a bug, the issue status is also changed to "assigned".

If changing issue status is not a kind of issue update, when you use "Change status to" button to change issue status, it also should not call an issue update notify custom function.

Surely, I think it's a kind of update, and I need it to be a kind of update... :wink:
Post Reply