Skip to content

Commit

Permalink
Fix upgrade method
Browse files Browse the repository at this point in the history
update_coverflow_js expects mapping to be parsed already
  • Loading branch information
kidclamp committed Jun 11, 2020
1 parent c3664e8 commit 2cec56e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Koha/Plugin/Com/ByWaterSolutions/CoverFlow.pm
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ sub upgrade {
C4::Context->set_preference( 'opacusercss', $opacusercss ) if $opacusercss ne $orig_oucss;

my $mapping = $self->retrieve_data('mapping');
my $custom_image = $self->retrieve_data('custom_image');
my $custom_image = $self->retrieve_data('custom_image');.
eval { $mapping = YAML::Load($mapping); };
$self->update_coverflow_js( $mapping, $custom_image );

return 1;
Expand Down

0 comments on commit 2cec56e

Please sign in to comment.