diff options
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 4 | ||||
-rw-r--r-- | templates/web/default/report/new/extra_name.html (renamed from templates/web/fixmystreet/report/new/extra_name.html) | 0 |
2 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index 68a30ca2c..ff0c64dc9 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -124,7 +124,9 @@ sub report_form_ajax : Path('ajax') : Args(0) { my $category = $c->render_fragment( 'report/new/category.html'); my $councils_text = $c->render_fragment( 'report/new/councils_text.html'); my $has_open311 = keys %{ $c->stash->{category_extras} }; - my $extra_name_info = $c->render_fragment('report/new/extra_name.html'); + my $extra_name_info = $c->stash->{extra_name_info} + ? $c->render_fragment('report/new/extra_name.html') + : ''; my $body = JSON->new->utf8(1)->encode( { diff --git a/templates/web/fixmystreet/report/new/extra_name.html b/templates/web/default/report/new/extra_name.html index 7b057a831..7b057a831 100644 --- a/templates/web/fixmystreet/report/new/extra_name.html +++ b/templates/web/default/report/new/extra_name.html |