diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-24 12:19:50 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-28 17:19:26 +0100 |
commit | f5b0c0629b9bbab562fe02f722b3ef1bb5bff37a (patch) | |
tree | 73b8855c215ab81a7e1fc67838f04d3f9a9d1a4e | |
parent | 6798a63297e4954344eefbf51147a971f30b58d2 (diff) |
Remove need for add detach
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin/Users.pm | 1 | ||||
-rw-r--r-- | templates/web/base/admin/users/form.html | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin/Users.pm b/perllib/FixMyStreet/App/Controller/Admin/Users.pm index 6af4ae831..96539358e 100644 --- a/perllib/FixMyStreet/App/Controller/Admin/Users.pm +++ b/perllib/FixMyStreet/App/Controller/Admin/Users.pm @@ -27,7 +27,6 @@ Admin pages for editing users sub index :Path : Args(0) { my ( $self, $c ) = @_; - $c->detach('add') if $c->req->method eq 'POST'; # Add a user if (my $search = $c->get_param('search')) { $search = $self->trim($search); diff --git a/templates/web/base/admin/users/form.html b/templates/web/base/admin/users/form.html index 8f0f9ad6e..944de802c 100644 --- a/templates/web/base/admin/users/form.html +++ b/templates/web/base/admin/users/form.html @@ -1,4 +1,4 @@ -<form method="post" id="user_edit" action="[% c.uri_for_action( 'admin/users/edit', user.id ) %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8"> +<form method="post" id="user_edit" action="[% c.uri_for_action( 'admin/users/edit', user.id || 'add' ) %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8"> <input type="hidden" name="token" value="[% csrf_token %]" > <input type="hidden" name="submit" value="1" > |