Commit 28d8778b authored by Mikael Salson's avatar Mikael Salson Committed by Vidjil

controllers/sample_set.py: 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}
else:
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=(',',':'))
else:
......@@ -691,7 +691,7 @@ def delete():
db(db.sample_set.id == sample_set.id).delete()
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"}
log.info(res, extra={'user_id': auth.user.id, 'record_id': request.vars["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