Commit 28d8778b authored by Mikaël Salson's avatar Mikaël Salson Committed by Vidjil

controllers/ Redirect on sample set page with page limit

Without page limit the list takes ages to load. This page limit
had been forgotten when creating or deleting sample sets.

Fixes  #3139,#3141,#3169
parent d6f07859
......@@ -515,7 +515,7 @@ def submit():
"message": msg}
res = {"redirect": "sample_set/all",
"args" : { "type" : length_mapping[max_num] },
"args" : { "type" : length_mapping[max_num], "page": 0 },
"message": msg}
return gluon.contrib.simplejson.dumps(res, separators=(',',':'))
......@@ -691,7 +691,7 @@ def delete():
db( ==
res = {"redirect": "sample_set/all",
"args": {"type": sample_type},
"args": {"type": sample_type, "page": 0},
"success": "true",
"message": "sample set ("+str(request.vars["id"])+") deleted"}, extra={'user_id':, 'record_id': request.vars["id"], 'table_name': 'sample_set'})
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment