svc_cable, RT#22009
[freeside.git] / FS / FS / Upgrade.pm
index aabc4e7..14527f9 100644 (file)
@@ -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 {