Commit 207ef8f8 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

controllers/ fix add redirect issue

When adding a sample_set the page was then redirected to the wrong
sample_set due to the wrong id being passed to the controller
parent 445a2d29
......@@ -249,7 +249,7 @@ def add_form():
auth.add_permission(user_group, PermissionEnum.access.value, db.generic, id)
res = {"redirect": "sample_set/index",
"args" : { "id" : id },
"args" : { "id" : id_sample_set },
"message": "(%s) sample_set %s added" % (id, request.vars["name"]) }, extra={'user_id':, 'record_id': id, 'table_name': 'sample_set'})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment