temp fix for bug of back-end sending object id as 'xx#foobar'
This commit is contained in:
parent
8a2a967e40
commit
bc7bc46912
|
@ -43,7 +43,8 @@ def get_list(request):
|
||||||
tab_slug = request.GET.get("tab", "")
|
tab_slug = request.GET.get("tab", "")
|
||||||
tab = get_object_or_404(ModuleTab, slug=tab_slug)
|
tab = get_object_or_404(ModuleTab, slug=tab_slug)
|
||||||
object_id = request.GET.get("object_id", False)
|
object_id = request.GET.get("object_id", False)
|
||||||
object_id = object_id.replace("#", "") #FIXME - why is the front-end sending this?
|
if object_id.find("#") != -1:
|
||||||
|
object_id = object_id[0:object_id.find("#")] #FIXME - why is the front-end sending this?
|
||||||
sortString = request.GET.get("sort", "")
|
sortString = request.GET.get("sort", "")
|
||||||
if sortString == "" or sortString == 'null':
|
if sortString == "" or sortString == 'null':
|
||||||
sortArray = []
|
sortArray = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user