changed Severity => Print Reports doesnt work anymore

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
Buga
Posts: 74
Joined: 31 Mar 2008, 12:10

changed Severity => Print Reports doesnt work anymore

Post by Buga »

Hi
I changed the serverity for my mantis installation. But now there is new problem.
When I try to use the Print Reports function and hit the excel icon the export dont work. Excel opens but no new exelsheet is created even if the data was loaded. The other 3 options are working. (CSV export works too)

This only happens if I use the german language in Mantis. In english this also works.

Using Mantis 1.1.1

Here are the changeds I made:

custom_strings_inc.php

Code: Select all

<?PHP
	//Manuelle Anpassung der Felertypen:	
	if ( $g_active_language === 'german')
	{
		$s_severity_enum_string = '10:Kein Fehler,20:D,40:C,60:B,80:A';		
	}
	else
	{
		$s_severity_enum_string = '10:No Fault,20:D,40:C,60:B,80:A';		
	}
?>	
custom_constant_inc.php

Code: Select all

<?PHP
# severity		
  define( 'No Fault',	10 );
  define( 'D',	20 );	  
  define( 'C',	40 );		
  define( 'B',	60 );	
  define( 'A',	80 );
?>
The following line I added to the config_inc.php

Code: Select all

$g_severity_enum_string	 = '10:No Fault,20:D,40:C,60:B,80:A';
Any idea whats wrong here?
Buga
Posts: 74
Joined: 31 Mar 2008, 12:10

Re: changed Severity => Print Reports doesnt work anymore

Post by Buga »

I generated 2 Excel files. One with my changes and one without and checked the differences:

The not working Excel file starts with a tabulator. If I delete this char it works.

Does anyone have an idea where this tab comes from?
Post Reply