Bonjour,
dans le fichier bug_report_page.php, voila le code qui me permet d&
#039;afficher mes champs pérsonalisés :
<?php
$t_custom_fields_found = false;
$t_related_custom_field_ids = custom_field_get_linked_ids( $t_project_id );
foreach( $t_related_custom_field_ids as $t_id ) {
$t_def = custom_field_get_definition( $t_id );
if( ( ( $t_def[&
#039;display_report&
#039;] && !$t_def[&
#039;advanced&
#039;] ) || $t_def[&
#039;require_report&
#039;]) && custom_field_has_write_access_to_project( $t_id, $t_project_id ) ) {
$t_custom_fields_found = true;
?>
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php if( $t_def[&
#039;require_report&
#039;] ) { ?>
<span class="required">*</span>
<?php } ?>
<?php echo string_display( lang_get_defaulted( $t_def[&
#039;name&
#039;] ) ) ?>
</td>
<td>
<?php print_custom_field_input( $t_def, ( $f_master_bug_id === 0 ) ? null : $f_master_bug_id ) ?>
</td>
</tr>
<?php
} # if (!$t_def[&
#039;advanced&
#039;]) && has write access
} # foreach( $t_related_custom_field_ids as $t_id )
?>
<?php if ( $t_custom_fields_found ) { ?>
est ce qu&
#039;en reprenant cette structure mais en modifiant un parametre, je peux choisir le champs pérsonalisé que je souhaite afficher, sachant que je connait sont ID.
Merci d&
#039;avance pour votre aide