[freeside] Error when using "bill now" on prorated account

ivan at 420.am ivan at 420.am
Fri Jul 11 01:10:27 PDT 2003


Oops, typo in my previously posted patch, use this:

===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Record.pm,v
retrieving revision 1.61.2.5
retrieving revision 1.61.2.7
diff -u -r1.61.2.5 -r1.61.2.7
--- freeside/FS/FS/Record.pm	2003/05/08 09:34:43	1.61.2.5
+++ freeside/FS/FS/Record.pm	2003/07/11 07:54:24	1.61.2.7
@@ -428,11 +428,11 @@
   $field =~ s/.*://;
   if ( defined($value) ) {
     confess "errant AUTOLOAD $field for $self (arg $value)"
-      unless $self->can('setfield');
+      unless ref($self) && $self->can('setfield');
     $self->setfield($field,$value);
   } else {
     confess "errant AUTOLOAD $field for $self (no args)"
-      unless $self->can('getfield');
+      unless ref($self) && $self->can('getfield');
     $self->getfield($field);
   }
 }



-- 
_ivan



More information about the freeside-users mailing list