summaryrefslogtreecommitdiff
path: root/FS/FS/part_pkg.pm
diff options
context:
space:
mode:
authorivan <ivan>2005-06-09 09:15:34 +0000
committerivan <ivan>2005-06-09 09:15:34 +0000
commit99c3f95f803b687e4d04b2dad3c7552c2bd011bc (patch)
tree0dd0e4923b58f50b0d9cd3bf235247615da14280 /FS/FS/part_pkg.pm
parent7183047ba319da738cb2c80beda0a07e1e49f2cc (diff)
don't rebless if we're already in the plan subclass, fixes pkg customize link
Diffstat (limited to 'FS/FS/part_pkg.pm')
-rw-r--r--FS/FS/part_pkg.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/FS/FS/part_pkg.pm b/FS/FS/part_pkg.pm
index f9b36e2..fb08ddd 100644
--- a/FS/FS/part_pkg.pm
+++ b/FS/FS/part_pkg.pm
@@ -648,6 +648,7 @@ sub _rebless {
if $DEBUG;
return $self;
}
+ return $self if ref($self) =~ /::$plan$/; #already blessed into plan subclass
my $class = ref($self). "::$plan";
warn "reblessing $self into $class" if $DEBUG;
eval "use $class;";