[Vtigercrm-developers] Error in Report.tpl

carlo beschi carloz at gnumerica.org
Fri Jan 18 04:05:27 PST 2008


Hi Roberto, all

thanks for the fix :-)

I've updated http://vtiger.studiosynthesis.biz/504-rc2/ (live demo of
vtiger crm  5.0.4 RC2 with italian language pack).

I fixed a second bug of the italian/international version, thanks to 
Tullio Bezzornia (all credits to him for submitting the bug and 
providing the patch :-)):

while in a module, like Accounts, selecting the module (not the global) 
search, and the option advanced search, the "show more" option doesn't 
work and generates an error

invalid flag after regular expression
[Break on this error]

this is because of the "è" character

Tullio fixed this modifying /include/utils/SearchUtils.php adding at 
line 528

$fieldlabel = str_replace ("'","`", $fieldlabel );


and replacing around line 613

	$CRIT_OPT = "<option 
value=\'cts\'>".$app_strings['contains']."</option><option 
value=\'dcts\'>".$app_strings['does_not_contains']."</option><option 
value=\'is\'>".$app_strings['is']."</option><option 
value=\'isn\'>".$app_strings['is_not']."</option><option 
value=\'bwt\'>".$app_strings['begins_with']."</option><option 
value=\'ewt\'>".$app_strings['ends_with']."</option><option 
value=\'grt\'>".$app_strings['greater_than']."</option><option 
value=\'lst\'>".$app_strings['less_than']."</option><option 
value=\'grteq\'>".$app_strings['greater_or_equal']."</option><option 
value=\'lsteq\'>".$app_strings['less_or_equal']."</option>";

with

$CRIT_OPT = "<option value=\'cts\'>".str_replace 
("'","`",$app_strings['contains'])."</option><option 
value=\'dcts\'>".str_replace 
("'","`",$app_strings['does_not_contains'])."</option><option 
value=\'is\'>".str_replace 
("'","`",$app_strings['is'])."</option><option 
value=\'isn\'>".str_replace 
("'","`",$app_strings['is_not'])."</option><option 
value=\'bwt\'>".str_replace 
("'","`",$app_strings['begins_with'])."</option><option 
value=\'ewt\'>".str_replace 
("'","`",$app_strings['ends_with'])."</option><option 
value=\'grt\'>".str_replace 
("'","`",$app_strings['greater_than'])."</option><option 
value=\'lst\'>".str_replace 
("'","`",$app_strings['less_than'])."</option><option 
value=\'grteq\'>".str_replace 
("'","`",$app_strings['greater_or_equal'])."</option><option 
value=\'lsteq\'>".str_replace 
("'","`",$app_strings['less_or_equal'])."</option>";



Ciao,

Carlo


Santacroce ha scritto:
> Hi there,
> 
> during the test of the RC in italian localization I found a bug: in the
> report list page when I click on the ‘+’ button the voices of the menù are
> hidden if the value store in 
> 
> $app_list_strings = Array (
> 
>   'moduleList'
> 
> are different from the english name. So the menù had all empty voices.
> 
> The code interested from the bug is in the file \Smarty\templates\Report.tpl
> at line 62
> 
>             <a href="javascript:CreateReport('{$modulename}');"
> class="drop_down">- {$APP.$modules}</a>
> 
> To correct this bug replace this string with
> 
>             <a href="javascript:CreateReport('{$modulename}');"
> class="drop_down">- {$modules}</a>
> 
> Roberto
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Reach hundreds of potential candidates - http://jobs.vtiger.com 




More information about the vtigercrm-developers mailing list