Remove getValue from Assets, except for those in getEditForm which will go away later.
This commit is contained in:
parent
1b647c70f2
commit
ec5208839e
9 changed files with 45 additions and 45 deletions
|
|
@ -325,7 +325,7 @@ sub getTaxConfiguration {
|
|||
my $self = shift;
|
||||
my $namespace = shift;
|
||||
|
||||
my $configs = eval { from_json( $self->getValue('taxConfiguration') ) };
|
||||
my $configs = eval { from_json( $self->taxConfiguration ) };
|
||||
if ($@) {
|
||||
$self->session->log->error( 'Tax configuration of asset ' . $self->getId . ' appears to be corrupt. :' . $@ );
|
||||
return undef;
|
||||
|
|
@ -617,7 +617,7 @@ sub setTaxConfiguration {
|
|||
my $configuration = shift;
|
||||
|
||||
# Fetch current tax configurations
|
||||
my $configs = eval { from_json( $self->getValue('taxConfiguration') ) };
|
||||
my $configs = eval { from_json( $self->taxConfiguration ) };
|
||||
if ($@) {
|
||||
$self->session->log->error( 'Tax configuration of asset ' . $self->getId . ' is corrupt.' );
|
||||
return undef;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue