s/create/new/g; and use fields('table_name')
[freeside.git] / htdocs / edit / process / cust_main_county.cgi
index 11f55f2..8d274b8 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl -Tw
 #
-# $Id: cust_main_county.cgi,v 1.3 1998-12-17 08:40:21 ivan Exp $
+# $Id: cust_main_county.cgi,v 1.4 1999-01-18 22:47:53 ivan Exp $
 #
 # ivan@sisd.com 97-dec-16
 #
 # lose background, FS::CGI ivan@sisd.com 98-sep-2
 #
 # $Log: cust_main_county.cgi,v $
-# Revision 1.3  1998-12-17 08:40:21  ivan
+# Revision 1.4  1999-01-18 22:47:53  ivan
+# s/create/new/g; and use fields('table_name')
+#
+# Revision 1.3  1998/12/17 08:40:21  ivan
 # s/CGI::Request/CGI.pm/; etc
 #
 # Revision 1.2  1998/11/18 09:01:41  ivan
@@ -36,7 +39,7 @@ foreach ( $cgi->param ) {
   next unless $old->getfield('tax') ne $cgi->param("tax$taxnum");
   my(%hash)=$old->hash;
   $hash{tax}=$cgi->param("tax$taxnum");
-  my($new)=create FS::cust_main_county \%hash;
+  my($new)=new FS::cust_main_county \%hash;
   my($error)=$new->replace($old);
   eidiot($error) if $error;
 }