Skip to content
Browse files

Adding the site id parameter to the OC lookup.

  • Loading branch information...
1 parent 31c4c99 commit 5e6b69b2553af304430f2f40a2efe45929989e40 @bretdawson bretdawson committed with theory
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Bric/Biz/Asset/Business/Media/Image.pm
View
2 lib/Bric/Biz/Asset/Business/Media/Image.pm
@@ -529,7 +529,7 @@ sub find_or_create_alternate {
my $et = $p->{et_key_name}
? Bric::Biz::ElementType->lookup({ key_name => $p->{et_key_name} })
: $p->{element_type} || $self->get_element_type;
- my $oc = Bric::Biz::OutputChannel->lookup({id => $et->get_primary_oc_id});
+ my $oc = Bric::Biz::OutputChannel->lookup({id => $et->get_primary_oc_id($self->get_site_id)});
# Construct a URI for the alternate image.
my $image_fn = $self->get_file_name;

0 comments on commit 5e6b69b

Please sign in to comment.
Something went wrong with that request. Please try again.