Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

A fix for a bug in the previous commit. #35

Closed
wants to merge 2 commits into from

2 participants

@bretdawson

Sorry sorry sorry sorry.

@theory
Owner

This can no longer be merged via the GitHub tool, so you'll have to cherry-pick it. Looks good to go for that.

@theory theory closed this
@theory theory reopened this
@theory
Owner

Cherry-picked, thanks!

@theory theory closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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) = $et->get_output_channels;
+ 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;
Something went wrong with that request. Please try again.