projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e26101
)
allow defaults to override empty values for new objects
author
ivan
<ivan>
Mon, 28 Nov 2005 16:59:55 +0000
(16:59 +0000)
committer
ivan
<ivan>
Mon, 28 Nov 2005 16:59:55 +0000
(16:59 +0000)
FS/FS/svc_Common.pm
patch
|
blob
|
history
diff --git
a/FS/FS/svc_Common.pm
b/FS/FS/svc_Common.pm
index
b58b11c
..
d5083fd
100644
(file)
--- a/
FS/FS/svc_Common.pm
+++ b/
FS/FS/svc_Common.pm
@@
-51,7
+51,7
@@
sub new {
$self->{'Hash'} = { map { $_ => $newhash->{$_} } qw(svcnum svcpart) };
$self->setdefault;
$self->{'Hash'}{$_} = $newhash->{$_}
- foreach
#
grep length($newhash->{$_}),
+ foreach grep length($newhash->{$_}),
keys %$newhash;
foreach my $field ( grep !defined($self->{'Hash'}{$_}), $self->fields ) {