View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010449 | mantisbt | customization | public | 2009-05-04 01:46 | 2011-09-14 04:15 |
Reporter | edwerk | Assigned To | vboctor | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | no change required | ||
Product Version | 1.1.7 | ||||
Summary | 0010449: Report issue for an other reporter | ||||
Description | We are running a non-commercial helpdesk for a health care application in the Netherlands. When reporting bugs in the advanced screen (bug_report_advanced_page.php) | ||||
Additional Information | See attached file with sreendump of requested change. | ||||
Tags | No tags attached. | ||||
Attached Files | 10499.txt (2,905 bytes)
in config_inc.php add the following section: ################################## # Mantis Enable selecting Reporter ################################## $g_select_reporter = ON; $g_select_reporter_threshold = UPDATER; In bug_report.php add around line 47 after: $t_bug_data->project_id = gpc_get_int( 'project_id' ); the following code: if (( ON==config_get( 'select_reporter')) and ( access_has_project_level( config_get( 'select_reporter_threshold' ) ) )) { $t_bug_data->reporter_id = gpc_get_int( 'reporter_id', 0 ); }else{ $t_bug_data->reporter_id = auth_get_current_user_id(); } In bug_report_page.php add around line 90 after: $t_changed_project = false; the following code: if (( ON==config_get( 'select_reporter')) and ( access_has_project_level( config_get( 'select_reporter_threshold' ) ) )) { $f_reporter_id = gpc_get_int( 'reporter_id', 0 ); } Around line 225 after: <select tabindex="9" name="product_version"> <?php print_version_option_list( $f_product_version, $t_project_id, VERSION_RELEASED ) ?> </select> </td> </tr> <!-- spacer --> <tr> <td class="spacer" colspan="2"> </td> </tr> <?php } ?> the following code: <?php if ( ON==config_get( 'select_reporter')) { ?> <!-- Select Reporter (if permissions allow) --> <?php if ( access_has_project_level( config_get( 'select_reporter_threshold' ) ) ) { ?> <tr <?php echo helper_alternate_class() ?>> <!-- Reporter --> <td class="category"> <?php echo lang_get( 'reporter' ) ?> </td> <td> <select tabindex="5" name="reporter_id"> <?php print_reporter_option_list( auth_get_current_user_id(), $t_bug->project_id ) ?> </select> </td> </tr> <?php } ?> <?php } ?> In bug_report_advanced_page.php add around line 90 after: $f_handler_id = gpc_get_int( 'handler_id', 0 ); the following code: if (( ON==config_get( 'select_reporter')) and ( access_has_project_level( config_get( 'select_reporter_threshold' ) ) )) { $f_reporter_id = gpc_get_int( 'reporter_id', 0 ); } Around line 225 after: <!-- Product Build --> <tr <?php echo helper_alternate_class() ?>> <td class="category"> <?php echo lang_get( 'product_build' ) ?> </td> <td> <input tabindex="10" type="text" name="build" size="32" maxlength="32" value="<?php echo $f_build ?>" /> </td> </tr> the following code: <?php if ( ON==config_get( 'select_reporter')) { ?> <!-- Select Reporter (if permissions allow) --> <?php if ( access_has_project_level( config_get( 'select_reporter_threshold' ) ) ) { ?> <tr <?php echo helper_alternate_class() ?>> <!-- Reporter --> <td class="category"> <?php echo lang_get( 'reporter' ) ?> </td> <td> <select tabindex="5" name="reporter_id"> <?php print_reporter_option_list( auth_get_current_user_id(), $t_bug->project_id ) ?> </select> </td> </tr> <?php } ?> <?php } ?> | ||||
Already have this change available, also in the simple report screen. |
|
Ok Cas, contact me, next week, so we can arrange the deal for both issues. |
|
So how to progress? also send copies of the following scripts: |
|
For those who also need this change, attached the instructions how to do this. |
|
Attached a plugin which offers the same functionality for version 1.2.X |
|