View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003597 | mantisbt | custom fields | public | 2004-02-24 08:57 | 2004-02-29 07:17 |
| Reporter | yarick123 | Assigned To | vboctor | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 0.18.1 | ||||
| Summary | 0003597: custom fields names are not translaten in email | ||||
| Description | mantis 0.18.1 names of custom fields in bug view pages are translated a patch fixing this error is attached. | ||||
| Tags | No tags attached. | ||||
| Attached Files | mantis01801_translate_custom_field_names.patch (961 bytes)
diff -rc mantis-0.18.1/core/email_api.php mantis-to-cvs/core/email_api.php
*** mantis-0.18.1/core/email_api.php 2004-02-05 22:10:46.000000000 +0100
--- mantis-to-cvs/core/email_api.php 2004-02-24 14:54:21.000000000 +0100
***************
*** 439,445 ****
foreach( $t_related_custom_field_ids as $t_id ) {
$t_def = custom_field_get_definition( $t_id );
! $t_message .= str_pad( $t_def['name'] . ': ', $g_email_padding_length, ' ', STR_PAD_RIGHT );
$t_custom_field_value = custom_field_get_value( $t_id, $p_bug_id );
if( CUSTOM_FIELD_TYPE_EMAIL == $t_def['type'] ) {
--- 439,445 ----
foreach( $t_related_custom_field_ids as $t_id ) {
$t_def = custom_field_get_definition( $t_id );
! $t_message .= str_pad( lang_get_defaulted( $t_def['name'] ) . ': ', $g_email_padding_length, ' ', STR_PAD_RIGHT );
$t_custom_field_value = custom_field_get_value( $t_id, $p_bug_id );
if( CUSTOM_FIELD_TYPE_EMAIL == $t_def['type'] ) {
| ||||