Page 1 of 1
Can't view custom fields in the summary page
Posted: 24 Nov 2010, 12:42
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
Re: Can't view custom fields in the summary page
Posted: 30 Nov 2010, 12:02
by sopinfo
Please, anyone knows???
Re: Can't view custom fields in the summary page
Posted: 30 Nov 2010, 23:23
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.
Re: Can't view custom fields in the summary page
Posted: 01 Sep 2011, 14:01
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
Re: Can't view custom fields in the summary page
Posted: 01 Sep 2011, 14:26
by sopinfo
Hi Ernesto, yes i've created the file custom_strings_inc.php.
Re: Can't view custom fields in the summary page
Posted: 01 Sep 2011, 14:31
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
Re: Can't view custom fields in the summary page
Posted: 01 Sep 2011, 14:34
by Ernesto
... sorry the right filename is:
strings_english.txt
BR.
Ernesto
Re: Can't view custom fields in the summary page
Posted: 01 Sep 2011, 14:47
by sopinfo
No, i didn't change it. I only change: config_inc.php, custom_constant_inc.php and custom_strings_inc.php
Re: Can't view custom fields in the summary page
Posted: 01 Sep 2011, 14:57
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
Re: Can't view custom fields in the summary page
Posted: 02 Sep 2011, 18:00
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.