temp fix for bug of back-end sending object id as 'xx#foobar'

This commit is contained in:
Sanj 2012-01-09 22:05:28 +05:30
parent 8a2a967e40
commit bc7bc46912

View File

@ -43,7 +43,8 @@ def get_list(request):
tab_slug = request.GET.get("tab", "")
tab = get_object_or_404(ModuleTab, slug=tab_slug)
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", "")
if sortString == "" or sortString == 'null':
sortArray = []