From: ivan Date: Tue, 26 Oct 2004 12:07:26 +0000 (+0000) Subject: allow an empty exporttype so you can create new objects X-Git-Tag: BEFORE_FINAL_MASONIZE~885 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=3d2712d80b2a6a4b895c96373d3ef4633dc1cecc allow an empty exporttype so you can create new objects --- diff --git a/FS/FS/part_export.pm b/FS/FS/part_export.pm index 1e0b905fb..3f677b267 100644 --- a/FS/FS/part_export.pm +++ b/FS/FS/part_export.pm @@ -390,8 +390,9 @@ sub _rebless { my $exporttype = $self->exporttype; my $class = ref($self). "::$exporttype"; eval "use $class;"; - die $@ if $@; - bless($self, $class); + #die $@ if $@; + bless($self, $class) unless $@; + $self; } #these should probably all go away, just let the subclasses define em