projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
197e164
)
show a full stack backtrace if we wind up in the hash method with an empty Hash attri...
author
ivan
<ivan>
Thu, 1 Jul 2004 12:42:03 +0000
(12:42 +0000)
committer
ivan
<ivan>
Thu, 1 Jul 2004 12:42:03 +0000
(12:42 +0000)
FS/FS/Record.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Record.pm
b/FS/FS/Record.pm
index
946e39d
..
881b8dd
100644
(file)
--- a/
FS/FS/Record.pm
+++ b/
FS/FS/Record.pm
@@
-537,6
+537,8
@@
To make a distinct duplicate of an FS::Record object, you can do:
sub hash {
my($self) = @_;
+ confess $self. ' -> hash: Hash attribute is undefined'
+ unless defined($self->{'Hash'});
%{ $self->{'Hash'} };
}