projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7183047
)
don't rebless if we're already in the plan subclass, fixes pkg customize link
author
ivan
<ivan>
Thu, 9 Jun 2005 09:15:34 +0000
(09:15 +0000)
committer
ivan
<ivan>
Thu, 9 Jun 2005 09:15:34 +0000
(09:15 +0000)
FS/FS/part_pkg.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg.pm
b/FS/FS/part_pkg.pm
index
f9b36e2
..
fb08ddd
100644
(file)
--- 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;";