From: ivan Date: Thu, 9 Jun 2005 09:15:34 +0000 (+0000) Subject: don't rebless if we're already in the plan subclass, fixes pkg customize link X-Git-Tag: BEFORE_FINAL_MASONIZE~473 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=99c3f95f803b687e4d04b2dad3c7552c2bd011bc don't rebless if we're already in the plan subclass, fixes pkg customize link --- diff --git a/FS/FS/part_pkg.pm b/FS/FS/part_pkg.pm index f9b36e2ec..fb08ddd91 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;";