Mantis

Ajouter la colonne description pour l'affichage des bugs

Posted by Amel 
Re: Ajouter la colonne description pour l'affichage des bugs
August 30, 2007 08:23PM
Bonjour,

J'ai besoin d'avoir le descriptif du bug en passant la souris sur la colonne summary et en recherchant sur le forum j'ai trouvé cette modif.

Quote
deboutv
Je me suis trompé, désolé sad smiley

function custom_function_override_print_column_value( $p_column, $p_issue_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
    if ( COLUMNS_TARGET_CSV_PAGE == $p_columns_target ) {
        $t_column_start = '';
        $t_column_end = '';
        $t_column_empty = '';
    } else {
        $t_column_start = &#039;<td>&#039;;
        $t_column_end = &#039;</td>&#039;;
        $t_column_empty = &#039;&nbsp;&#039;;
    }

    if ( strpos( $p_column, &#039;custom_&#039; ) === 0 ) {
        echo $t_column_start;
        $t_custom_field = substr( $p_column, 7 );

        $t_field_id = custom_field_get_id_from_name( $t_custom_field );
        if ( $t_field_id === false ) {
            echo &#039;@&#039;, $t_custom_field, &#039;@&#039;;
        } else {
            $t_issue_id = $p_issue_row[&#039;id&#039;];
            $t_project_id = $p_issue_row[&#039;project_id&#039;];

            if ( custom_field_is_linked( $t_field_id, $t_project_id ) ) {
                $t_def = custom_field_get_definition( $t_field_id );
                print_custom_field_value( $t_def, $t_field_id, $t_issue_id );
            } else {
                // field is not linked to project
                  echo $t_column_empty;
            }
        }
        echo $t_column_end;
    } else {
        if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
            $t_function = &#039;print_column_&#039; . $p_column;
        } else {
            $t_function = &#039;csv_format_&#039; . $p_column;
        }

        if ( function_exists( $t_function ) ) {
            if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
                if ( $p_column == &#039;summary&#039; ) {
                    $t_summary = string_attribute( $p_issue_row[&#039;summary&#039;] );
                    $t_description = string_attribute( bug_get_text_field( $p_issue_row[&#039;id&#039;], &#039;description&#039; ) );
                    echo &#039;<td class="left"><a title="&#039;, $t_description, &#039;">&#039;, $t_summary;
                    if ( VS_PRIVATE == $p_issue_row[&#039;view_state&#039;] ) {
			printf( &#039; <img src="%s" alt="(%s)" title="%s" />&#039;
                               , $t_icon_path . &#039;protected.gif&#039;
                               , lang_get( &#039;private&#039; )
                               , lang_get( &#039;private&#039; )
			);      
                    }       
                    echo &#039;</a></td>&#039;;
                } else {
                    $t_function( $p_issue_row, $p_columns_target );
                }
            } else {
                $t_function( $p_issue_row[$p_column] );
            }
        } else {
            if ( isset( $p_issue_row[$p_column] ) ) {
                echo $t_column_start . $p_issue_row[$p_column] . $t_column_end;
            } else {
                echo $t_column_start . &#039;@&#039; . $p_column . &#039;@&#039; . $t_column_end;
            }
        }
    }
}

Je l&#039;ai appliquée, et ça marche, si ce n&#039;est que la bulle qui affiche la description est sur une seule ligne et on ne peut donc pas tout lire.

Comment est il possible d&#039;avoir un cadre plus important (au moins 5 lignes) et afficher plus d&#039;info.

Merci d&#039;avance.

Thierry.
Re: Ajouter la colonne description pour l'affichage des bugs
August 30, 2007 08:41PM
Quote
tnavarro
Bonjour,

J&#039;ai besoin d&#039;avoir le descriptif du bug en passant la souris sur la colonne summary et en recherchant sur le forum j&#039;ai trouvé cette modif.

Je l&#039;ai appliquée, et ça marche, si ce n&#039;est que la bulle qui affiche la description est sur une seule ligne et on ne peut donc pas tout lire.

Comment est il possible d&#039;avoir un cadre plus important (au moins 5 lignes) et afficher plus d&#039;info.

C&#039;est un problème de navigateur, on ne peut rien faire au niveau de Mantis (mais vraiment rien).

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Ajouter la colonne description pour l'affichage des bugs
September 02, 2007 07:25PM
Tant pis

Merci tout de même pour la réponse.
Sorry, only registered users may post in this forum.

Click here to login



Online Users

Guests: 15
Record Number of Users: 1 on April 02, 2023
Record Number of Guests: 115 on November 09, 2023
Top Users
Hébergeur : Morinie.Fr