X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FRecord.pm;h=b226e177ba9589f8c77fd32ccc607021bc7340ad;hb=5f8111de04a4a914c72a1642722476db4728339c;hp=a68442582d6d574016a2fb86cadb0e7bc322cb47;hpb=c7cc0522832d0e1c056f9bce46dd1b4b5551e612;p=freeside.git diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index a68442582..b226e177b 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -367,6 +367,9 @@ sub qsearch { my @bind_type = (); my $dbh = dbh; foreach my $stable ( @stable ) { + + carp '->qsearch on cust_main called' if $stable eq 'cust_main' && $DEBUG; + #stop altering the caller's hashref my $record = { %{ shift(@record) || {} } };#and be liberal in receipt my $select = shift @select; @@ -994,6 +997,8 @@ sub AUTOLOAD { eval "use FS::$table"; die $@ if $@; + carp '->cust_main called' if $table eq 'cust_main' && $DEBUG; + my $pkey_value = $self->$column(); my %search = ( $foreign_column => $pkey_value ); @@ -1122,6 +1127,13 @@ sub hashref { $self->{'Hash'}; } +#fallback +sub API_getinfo { + my $self = shift; + +{ ( map { $_=>$self->$_ } $self->fields ), + }; +} + =item modified Returns true if any of this object's values have been modified with set (or via