Skip to content

Commit

Permalink
fixup! Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
nephila-nacrea committed Jun 1, 2022
1 parent af5dc0d commit 4b77b1a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 23 deletions.
3 changes: 3 additions & 0 deletions perllib/FixMyStreet/DB/Result/Problem.pm
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,12 @@ sub public_asset_id {
my $self = shift;

my $current_cobrand = $self->result_source->schema->cobrand;

my $cobrand_for_problem = $current_cobrand->call_hook(
get_body_handler_for_problem => $self );

return unless $cobrand_for_problem;

# Should be of the form:
# COBRAND_FEATURES:
# public_asset_ids:
Expand Down
File renamed without changes.
8 changes: 1 addition & 7 deletions templates/web/base/report/_main_after.html
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
[% IF problem.to_body_named('Oxfordshire') %]
[% IF problem.whensent %]
[% INCLUDE 'report/_cobrand_ref_oxfordshire.html' %]
[% END %]
[% ELSE %]
[% INCLUDE 'report/_cobrand_ref_default.html' %]
[% END %]
[% INCLUDE 'report/_cobrand_ref.html' %]
7 changes: 7 additions & 0 deletions templates/web/fixmystreet.com/report/_main_after.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[% IF problem.to_body_named('Oxfordshire') %]
[% IF problem.whensent %]
[% INCLUDE 'report/_cobrand_ref_oxfordshire.html' %]
[% END %]
[% ELSE %]
[% INCLUDE 'report/_cobrand_ref.html' %]
[% END %]
16 changes: 0 additions & 16 deletions templates/web/oxfordshire/report/_cobrand_ref.html

This file was deleted.

1 change: 1 addition & 0 deletions templates/web/oxfordshire/report/_cobrand_ref.html

0 comments on commit 4b77b1a

Please sign in to comment.