Skip to content

Commit

Permalink
[National Highways] Fix 'base_url_for_report'.
Browse files Browse the repository at this point in the history
Was defaulting to always using the cobrand URL, even for reports not belonging to
National Highways.

https://mysocietysupport.freshdesk.com/a/tickets/5062
  • Loading branch information
neprune committed Jan 27, 2025
1 parent ed9a799 commit f8da493
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions perllib/FixMyStreet/Cobrand/HighwaysEngland.pm
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ sub base_url { FixMyStreet::Cobrand::UKCouncils::base_url($_[0]) }
sub contact_name { FixMyStreet::Cobrand::UKCouncils::contact_name($_[0]) }
sub contact_email { FixMyStreet::Cobrand::UKCouncils::contact_email($_[0]) }
sub users_staff_admin { FixMyStreet::Cobrand::UKCouncils::users_staff_admin($_[0]) }
sub base_url_for_report { FixMyStreet::Cobrand::UKCouncils::base_url_for_report($_[0], $_[1]) }
sub owns_problem { FixMyStreet::Cobrand::UKCouncils::owns_problem($_[0], $_[1]) }

Check warning on line 57 in perllib/FixMyStreet/Cobrand/HighwaysEngland.pm

View check run for this annotation

Codecov / codecov/patch

perllib/FixMyStreet/Cobrand/HighwaysEngland.pm#L56-L57

Added lines #L56 - L57 were not covered by tests

=item * Any report made when the site was only fully anonymous should remain anonymous
Expand Down

0 comments on commit f8da493

Please sign in to comment.