Can't view custom fields in the summary page

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
sopinfo
Posts: 5
Joined: 24 Nov 2010, 12:28

Can't view custom fields in the summary page

Post by sopinfo »

I have made 2 custom fields (a string and a checkbox) and i can't view them in the summary page (summary_page.php).
In the summary page, there are groups: By Status, By Severity, By Category, etc.
I want to group by the custom field i've had set up.
Is it possible?

Thanks.

Mantis: 1.2.3
PHP: 5.3.3
SQL: MySQL 5.1.52
OS: Windows 2003 / IIS 6
Attachments
summary page.jpg
summary page.jpg (157.21 KiB) Viewed 10715 times
custom field.jpg
custom field.jpg (100.28 KiB) Viewed 10715 times
sopinfo
Posts: 5
Joined: 24 Nov 2010, 12:28

Re: Can't view custom fields in the summary page

Post by sopinfo »

Please, anyone knows???
istvanb
Posts: 226
Joined: 22 Aug 2010, 21:00

Re: Can't view custom fields in the summary page

Post by istvanb »

It is hard to believe if there is any off the shelf solution exists to your problem. Think about it: how should mantis graph your textbox? It would be easier if you would use an enumerated field (for both the textbox and the radio buttons), but still then I think you should code your own graphs. In this case it would be easier though since some other enums are coded.

Dont misunderstand my answer. I dont know if there is a solution exists to your problem, but my instinct says you gotta code this on your own.
Ernesto
Posts: 36
Joined: 26 Oct 2006, 08:36
Location: Italy

Re: Can't view custom fields in the summary page

Post by Ernesto »

Hi,
have you created the file:

custom_strings_inc.php

this is my file:

<?php

$s_access_levels_enum_string = '10:Viewer,25:Reporter,56:Designer,61:Verifier,71:Project_Leader,90:Administrator';
$s_severity_enum_string = '11:5 - Very minor defect,21:4 - Defect of minor significance ,31:3 - Failure of non-critical aspects,51: 2 - Impaired functionality,71:1 - Catastrophic defect';

$s_status_enum_string = '10:new,20:feedback,50:assigned,51:working,80:resolved,90:closed';
$s_working_bug_button = "Issue Ready to Working";
$s_working_bug_title = "Set Issue Ready to Working";
$s_email_notification_title_for_status_bug_working = "The following issue is ready WORKING.";

?>


Let me know.
BR.
Ernesto
sopinfo
Posts: 5
Joined: 24 Nov 2010, 12:28

Re: Can't view custom fields in the summary page

Post by sopinfo »

Hi Ernesto, yes i've created the file custom_strings_inc.php.
Ernesto
Posts: 36
Joined: 26 Oct 2006, 08:36
Location: Italy

Re: Can't view custom fields in the summary page

Post by Ernesto »

Have you changed the file string_english.txt available in mantis_PATH/lang directory?

These are my changes:

# Ernesto Modified Enum Strings
#$s_access_levels_enum_string = '10:viewer,25:reporter,40:updater,55:developer,70:manager,90:administrator'; (ORIG)
$s_access_levels_enum_string = '10:viewer,25:reporter,56:designer,61:verifier,71:project_leader,90:administrator';

# Ernesto Modified Severity for Issues
#$s_severity_enum_string = '10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,80:block'; (ORIG)
$s_severity_enum_string = '11:5 - Very minor defect,21:4 - Defect of minor significance ,31:3 - Failure of non-critical aspects,51:2 - Impaired functionality,71:1 - Catastrophic defect';

# Ernesto Modified Status projects
#$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,90:closed'; (ORIG)
$s_status_enum_string = '10:new,20:feedback,50:assigned,51:working,80:resolved,90:closed';

Let me know.
BR.
Ernesto
Ernesto
Posts: 36
Joined: 26 Oct 2006, 08:36
Location: Italy

Re: Can't view custom fields in the summary page

Post by Ernesto »

... sorry the right filename is:

strings_english.txt


BR.
Ernesto
sopinfo
Posts: 5
Joined: 24 Nov 2010, 12:28

Re: Can't view custom fields in the summary page

Post by sopinfo »

No, i didn't change it. I only change: config_inc.php, custom_constant_inc.php and custom_strings_inc.php
Ernesto
Posts: 36
Joined: 26 Oct 2006, 08:36
Location: Italy

Re: Can't view custom fields in the summary page

Post by Ernesto »

You have to change the file strings_<LANGUAGE>.txt.
For example if you use italian, spanish and english you have to change:

strings_italian.txt
strings_spanish.txt
strings_english.txt


let me know.
BR.
Ernesto
sopinfo
Posts: 5
Joined: 24 Nov 2010, 12:28

Re: Can't view custom fields in the summary page

Post by sopinfo »

Sorry Ernesto, I don't understand what are you trying to explain me. I know about the language files. I think i will follow the recommendation of istvanb about my original post.
Thanks.
Post Reply