Merge pull request #7818 from dolibarr95/patch-29

Fix : syntax error in dol_print_graph()
This commit is contained in:
Laurent Destailleur 2017-11-17 13:18:11 +01:00 committed by GitHub
commit 68f477eaf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2557,7 +2557,7 @@ function dol_print_graph($htmlid,$width,$height,$data,$showlegend=0,$type='pie',
var number=series.data[0][1];
return \'';
print '<div style="font-size:8pt;text-align:center;padding:2px;color:black;">';
if ($url) print '<a style="color: #FFFFFF;" border="0" href="'.$url.'=">';
if ($url) print '<a style="color: #FFFFFF;" border="0" href="'.$url.'">';
print '\'+'.($showlegend?'number':'label+\' \'+number');
if (! empty($showpercent)) print '+\'<br/>\'+percent+\'%\'';
print '+\'';