From bc7bc4691208a4c73b3a4a167a066ab667667677 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 9 Jan 2012 22:05:28 +0530 Subject: [PATCH] temp fix for bug of back-end sending object id as 'xx#foobar' --- itf/insidepages/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/itf/insidepages/views.py b/itf/insidepages/views.py index f070f3d..c99750e 100755 --- a/itf/insidepages/views.py +++ b/itf/insidepages/views.py @@ -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 = []