projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2cbb39a
)
bypass plandata warning; we're accessing it on purpose
author
ivan
<ivan>
Mon, 8 Nov 2004 09:24:54 +0000
(09:24 +0000)
committer
ivan
<ivan>
Mon, 8 Nov 2004 09:24:54 +0000
(09:24 +0000)
FS/FS/part_pkg.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg.pm
b/FS/FS/part_pkg.pm
index
5063936
..
d7cc3cb
100644
(file)
--- a/
FS/FS/part_pkg.pm
+++ b/
FS/FS/part_pkg.pm
@@
-2,7
+2,7
@@
package FS::part_pkg;
use strict;
use vars qw( @ISA %freq %plans $DEBUG );
use strict;
use vars qw( @ISA %freq %plans $DEBUG );
-use Carp qw(cluck);
+use Carp qw(c
arp c
luck);
use Tie::IxHash;
use FS::Conf;
use FS::Record qw( qsearch qsearchs dbh dbdef );
use Tie::IxHash;
use FS::Conf;
use FS::Record qw( qsearch qsearchs dbh dbdef );
@@
-462,7
+462,7
@@
sub option {
} );
return $part_pkg_option->optionvalue if $part_pkg_option;
my %plandata = map { /^(\w+)=(.*)$/; ( $1 => $2 ); }
} );
return $part_pkg_option->optionvalue if $part_pkg_option;
my %plandata = map { /^(\w+)=(.*)$/; ( $1 => $2 ); }
- split("\n", $self->
plandata
);
+ split("\n", $self->
get('plandata')
);
return $plandata{$opt} if exists $plandata{$opt};
cluck "Package definition option $opt not found in options or plandata!\n";
'';
return $plandata{$opt} if exists $plandata{$opt};
cluck "Package definition option $opt not found in options or plandata!\n";
'';