diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-12-28 16:11:46 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-12-28 16:11:46 -0800 |
commit | 32072dbf59a054529f5304574c0f56f9567d14d0 (patch) | |
tree | eaca19adc8da8daf4b0eaaed1a16c3a8e5a53cb0 /FS/FS/export_device.pm | |
parent | 66c235e33563ccd785ff9e0828398f778a75fb9f (diff) |
autoload methods returning foreign records, RT#13971
Diffstat (limited to 'FS/FS/export_device.pm')
-rw-r--r-- | FS/FS/export_device.pm | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/FS/FS/export_device.pm b/FS/FS/export_device.pm index 69e3826..d3795c6 100644 --- a/FS/FS/export_device.pm +++ b/FS/FS/export_device.pm @@ -1,10 +1,7 @@ package FS::export_device; +use base qw( FS::Record ); use strict; -use base qw( FS::Record ); -use FS::Record qw( qsearch qsearchs dbh ); -use FS::part_export; -use FS::part_device; =head1 NAME @@ -103,24 +100,10 @@ sub check { Returns the FS::part_export object (see L<FS::part_export>). -=cut - -sub part_export { - my $self = shift; - qsearchs( 'part_export', { 'exportnum' => $self->exportnum } ); -} - =item part_device Returns the FS::part_device object (see L<FS::part_device>). -=cut - -sub part_device { - my $self = shift; - qsearchs( 'part_device', { 'svcpart' => $self->devicepart } ); -} - =back =head1 BUGS |