Help with requireing a user to enter a bugnote

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
shaitan
Posts: 6
Joined: 18 Jun 2007, 19:43

Help with requireing a user to enter a bugnote

Post by shaitan »

Using mantis 1.0.7

I've been searching for the past few hours and I can't find any info on how to require a user to always enter in a bugnote when changing a status. I know I can do something like this for custom fields, but is there a way to do this for the bugnote field?
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post by deboutv »

No I don't think so.
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
tmcomp
Posts: 4
Joined: 19 Jun 2007, 10:01
Location: Glasgow (UK)
Contact:

Post by tmcomp »

You should be able to do it with a custom function (see manual
http://www.mantisbugtracker.com/manual/ ... nction.php
)

You can use the same idea as that function, but put in a custom for the status changes into custom_functions_inc.php
(name will be something like
custom_function_default_issue_update_validate( $p_issue_id, $p_new_bug, p_bug_note_text )
and just check that the p_bug_note_text has some data in it
shaitan
Posts: 6
Joined: 18 Jun 2007, 19:43

Post by shaitan »

Thanks for the replies.

I have absolutly no experience using PHP so this may be a bit tricky. I'll see what I can whip up today though, it doesn't look too rough.
Post Reply