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.
Quote
deboutvJe me suis trompé, désolé
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 = '<td>';
$t_column_end = '</td>';
$t_column_empty = ' ';
}
if ( strpos( $p_column, 'custom_' ) === 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 '@', $t_custom_field, '@';
} else {
$t_issue_id = $p_issue_row['id'];
$t_project_id = $p_issue_row['project_id'];
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 = 'print_column_' . $p_column;
} else {
$t_function = 'csv_format_' . $p_column;
}
if ( function_exists( $t_function ) ) {
if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
if ( $p_column == 'summary' ) {
$t_summary = string_attribute( $p_issue_row['summary'] );
$t_description = string_attribute( bug_get_text_field( $p_issue_row['id'], 'description' ) );
echo '<td class="left"><a title="', $t_description, '">', $t_summary;
if ( VS_PRIVATE == $p_issue_row['view_state'] ) {
printf( ' <img src="%s" alt="(%s)" title="%s" />'
, $t_icon_path . 'protected.gif'
, lang_get( 'private' )
, lang_get( 'private' )
);
}
echo '</a></td>';
} 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 . '@' . $p_column . '@' . $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.