Error Message
Ivan Kohler
ivan at sisd.com
Fri Nov 6 21:21:11 PST 1998
You are using Pg?
Try this:
===================================================================
RCS file: /home/cvs/cvsroot/freeside/site_perl/Record.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- freeside/site_perl/Record.pm 1998/10/12 06:58:49 1.1
+++ freeside/site_perl/Record.pm 1998/11/07 05:17:18 1.2
@@ -127,7 +127,7 @@
# }
#}
- foreach my $column (keys %{$hashref}) {
+ foreach my $column ( FS::Record::fields $table ) {
#trim the '$' from money fields for Pg (beong HERE?)
#(what about Pg i18n?)
if ( datasrc =~ m/Pg/
@@ -861,6 +861,12 @@
added pod documentation ivan at sisd.com 98-sep-6
ut_phonen got ''; at the end ivan at sisd.com 98-sep-27
+
+$Log: Record.pm,v $
+Revision 1.2 1998/11/07 05:17:18 ivan
+In sub new, Pg wrapper for money fields from dbdef (FS::Record::fields $table),
+not keys of supplied hashref.
+
=cut
--
Ivan Kohler <ivan at sisd.com> - finger for PGP key
Silicon Interactive Software Design - http://www.sisd.com/ - 888-670-SISD
Open-source billing and administration for ISPs - http://www.sisd.com/freeside
20 4,16 * * * saytime # please don't be surprised if you find me dreaming too
On Thu, Nov 05, 1998 at 04:14:23PM -0700, Paul A. Nelson wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I have Freeside installed, I can add customers and add packages for
> them, but when I try to add a service, it gives me the error:
>
> [Thu Nov 5 16:08:56 1998] svc_acct.cgi: Can't call method "type"
> without a pack
> age or object reference at /usr/local/lib/site_perl/FS/Record.pm line
> 133.
>
> That was in my apache error log and was displayed in the browser.
>
> Any help would be greatly appreciated.
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP for Personal Privacy 5.0
> Charset: noconv
>
> iQA/AwUBNkIxTg/RGtuLLPHLEQJecgCffkCofjWPrhDl3D6ECLHSuXZKMhUAoIyu
> r/J8kSt8kSmFsjFofABJ9b3n
> =7yvg
> -----END PGP SIGNATURE-----
>
> -------------------------------------------------------------------------
> | Paul A. Nelson | paul at swpc.net |
> | System's Administrator | (505) 762-1414 (Voice) |
> | South Western Plains Communications | (505) 762-1011 (Fax) |
> -------------------------------------------------------------------------
More information about the freeside-users
mailing list