diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-03 10:47:33 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-03 10:47:33 +0100 |
commit | 654fb3942a04e53c09d7cf516c7bf6a3523d5557 (patch) | |
tree | 7149163310cd3da46c01ed67eb6e969307abb452 /perllib/FixMyStreet/App/Controller/Admin/ReportExtraFields.pm | |
parent | 26d2bb9dddb0f9e10267ec47dbcb4a1571021a8b (diff) | |
parent | 5c06c6c6894a9094a8c60324ac000214964f5da8 (diff) |
Merge branch 'moderation-dst-time'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin/ReportExtraFields.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin/ReportExtraFields.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin/ReportExtraFields.pm b/perllib/FixMyStreet/App/Controller/Admin/ReportExtraFields.pm index 337fb4bed..0ddbb01f7 100644 --- a/perllib/FixMyStreet/App/Controller/Admin/ReportExtraFields.pm +++ b/perllib/FixMyStreet/App/Controller/Admin/ReportExtraFields.pm @@ -9,7 +9,7 @@ BEGIN { extends 'Catalyst::Controller'; } sub index : Path : Args(0) { my ( $self, $c ) = @_; - my @extras = $c->model('DB::ReportExtraFields')->search( + my @extras = $c->model('DB::ReportExtraField')->search( undef, { order_by => 'name' @@ -24,9 +24,9 @@ sub edit : Path : Args(1) { my $extra; if ( $extra_id eq 'new' ) { - $extra = $c->model('DB::ReportExtraFields')->new({}); + $extra = $c->model('DB::ReportExtraField')->new({}); } else { - $extra = $c->model('DB::ReportExtraFields')->find( $extra_id ) + $extra = $c->model('DB::ReportExtraField')->find( $extra_id ) or $c->detach( '/page_error_404_not_found' ); } |