projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52feaa0
)
fix upgrade issue w/ black part_pkg.comment, RT#3988
author
ivan
<ivan>
Wed, 24 Jun 2009 04:42:14 +0000
(
04:42
+0000)
committer
ivan
<ivan>
Wed, 24 Jun 2009 04:42:14 +0000
(
04:42
+0000)
FS/FS/part_pkg.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg.pm
b/FS/FS/part_pkg.pm
index
1ea941f
..
ba80475
100644
(file)
--- a/
FS/FS/part_pkg.pm
+++ b/
FS/FS/part_pkg.pm
@@
-1281,6
+1281,7
@@
sub _upgrade_data { # class method
$new->custom('Y');
my $comment = $part_pkg->comment;
$comment =~ s/^\(CUSTOM\) //;
+ $comment = '(none)' unless $comment =~ /\S/;
$new->comment($comment);
my $pkg_svc = { map { $_->svcpart => $_->quantity } $part_pkg->pkg_svc };