X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FUpgrade.pm;h=14527f985511a36965578766eae8237edd01c3ac;hb=4abeb53ac1ba98d441dab810c859c025e7307809;hp=aabc4e72fa0267c730dd7ea11afc323be546de9a;hpb=685f35c0d8d08ea7bbf2ac7cf2db19cdc79fcccf;p=freeside.git diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm index aabc4e72f..14527f985 100644 --- a/FS/FS/Upgrade.pm +++ b/FS/FS/Upgrade.pm @@ -64,6 +64,19 @@ sub upgrade_config { upgrade_overlimit_groups($conf); map { upgrade_overlimit_groups($conf,$_->agentnum) } qsearch('agent', {}); + # change 'fslongtable' to 'longtable' + # in invoice main template, and also in all secondary invoice templates + my @latex_confs = + qsearch('conf', { 'name' => {op=>'LIKE', value=>'%latex%'} }); + + foreach my $c (@latex_confs) { + my $value = $c->value; + if (length($value) and $value =~ /fslongtable/) { + $value =~ s/fslongtable/longtable/g; + $conf->set($c->name, $value, $c->agentnum); + } + } + } sub upgrade_overlimit_groups {