From 5637814f197019e2ff5c21a7e079ced7f10aefb2 Mon Sep 17 00:00:00 2001 From: kindly Date: Mon, 27 Jan 2014 12:51:49 +0000 Subject: [PATCH] [#1460] Change button to input so that ie7 works. Also needed to change way params are got as value needs to be the thing shown on the input --- ckan/controllers/package.py | 6 +++++- ckan/templates/group/snippets/group_item.html | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ckan/controllers/package.py b/ckan/controllers/package.py index 689b8e64355..32ce8f69ee1 100644 --- a/ckan/controllers/package.py +++ b/ckan/controllers/package.py @@ -1326,7 +1326,11 @@ def groups(self, id): except NotFound: abort(404, _('Group not found')) - removed_group = request.POST.get('group_removed') + removed_group = None + for param in request.POST: + if param.startswith('group_remove'): + removed_group = param.split('.')[-1] + break if removed_group: data_dict = {"id": removed_group, "object": id, diff --git a/ckan/templates/group/snippets/group_item.html b/ckan/templates/group/snippets/group_item.html index ca90dedd647..8d66988dd9e 100644 --- a/ckan/templates/group/snippets/group_item.html +++ b/ckan/templates/group/snippets/group_item.html @@ -36,7 +36,7 @@

{{ group.display_name }}

{{ _('View {name}').format(name=group.display_name) }} {% if group.user_member %} - + {% endif %} {% if position is divisibleby 3 %}