Changing report issue simple view.

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
j.kujawski
Posts: 2
Joined: 20 Apr 2006, 10:17

Changing report issue simple view.

Post by j.kujawski »

Hey.

I'm wondering how can i change report issue simple view.

I want to add 'assign to' field
and remove:
reproducibility,
Severity,
additional information.

I've done it :) in bug_report_page.php

but now when submiting i get this error:
APPLICATION ERROR #200
A required parameter to this page (reproducibility) was not found.

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.


Any ideas, what should i do/change or not :)[/quote]
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

In bug_report.php

Replace:

Code: Select all

$t_bug_data->reproducibility  = gpc_get_int( 'reproducibility' );
$t_bug_data->severity    = gpc_get_int( 'severity' );
with:

Code: Select all

$t_bug_data->reproducibility  = gpc_get_int( 'reproducibility', 100 );
$t_bug_data->severity    = gpc_get_int( 'severity', config_get( 'default_bug_severity' ) );
Once you do that, you should be able to remove the fields form the html and it should work.

Regards,
Victor
MantisConnect
http://www.futureware.biz/mantisconnect/
j.kujawski
Posts: 2
Joined: 20 Apr 2006, 10:17

Post by j.kujawski »

Once again ( first on irc ) i am very grateful for your help.

It works just fine.
Post Reply