본문 바로가기
Infra/(BTS) Mantis

Confirm Version(Product Version) 노출 방법

by 화뉘 2011. 3. 15.

bug_change_status.php
<?php
if ( ( $f_new_status > $t_resolved ) && ( $f_new_status < $t_closed  ) ) { ?>

<!-- Confirm Version -->
<tr <?php echo helper_alternate_class() ?>>
        <td class="category">
                <?php echo lang_get('version') ?>
        </td>
        <td>
                <select name="version">
                        <?php print_version_option_list( bug_get_field( $f_bug_id, 'version' ),
                                                        bug_get_field( $f_bug_id, 'project_id' ), VERSION_ALL ) ?>
                </select>
        </td>
</tr>

<?php } ?>

-->bug_viwe_inc.php의 소스코드에  
   if ( $tpl_show_product_version || $tpl_show_fixed_in_version || $tpl_show_target_version ) {
                $t_version_rows = version_get_all_rows( $tpl_bug->project_id );

                if ( $tpl_show_product_version ) {
                        $tpl_product_version_string  = prepare_version_string( $tpl_bug->project_id, version_get_id( $tpl_bug->version, $tpl_bug->project_id ), $t_version_rows );
                }

                if ( $tpl_show_target_version ) {
                        $tpl_target_version_string   = prepare_version_string( $tpl_bug->project_id, version_get_id( $tpl_bug->target_version, $tpl_bug->project_id) , $t_version_rows );
                }

                if ( $tpl_show_fixed_in_version ) {
                        $tpl_fixed_in_version_string = prepare_version_string( $tpl_bug->project_id, version_get_id( $tpl_bug->fixed_in_version, $tpl_bug->project_id ), $t_version_rows );
                }
        }
처럼 product version이 product_version이 아닌 version으로 되어 있으므로 version으로 해야 Confirm Version이 Issue View Details Page에 노출된다.

'Infra > (BTS) Mantis' 카테고리의 다른 글

버전 설정  (0) 2011.03.14
Mantis Customzing(3/14)  (0) 2011.03.14
BTS Customizing(3/9)  (0) 2011.03.09
Mantis Customizing 진행(1/21)  (0) 2011.01.21
Mantis Customizing 진행(1/18)  (0) 2011.01.18

댓글