Skip to content

Commit

Permalink
bug fix - "Add to <collection>" does nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhuang committed Jul 2, 2013
1 parent dc3b1b5 commit b0acdc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deme_django/cms/templatetags/item_tags.py
Expand Up @@ -416,7 +416,7 @@ def render(self, context):

# add an item to this collection
if isinstance(item, Collection) and agentcan_helper(context, 'modify_membership', item):
list_items.append("""<li><a href="#" onclick="openDialog('addmember%(id)s'); return false;" tabindex="-1" title="Add an item into this collection" class="insert-item" data-target="addmember%(id)s"><i class="demeicon demeicon-add-collection"></i> Add to %(name)s</a></li>""" % {'id': item.pk, 'name': item_name })
list_items.append("""<li><a href="#" onclick="openDialogBox('addmember%(id)s'); return false;" tabindex="-1" title="Add an item into this collection" class="insert-item" data-target="addmember%(id)s"><i class="demeicon demeicon-add-collection"></i> Add to %(name)s</a></li>""" % {'id': item.pk, 'name': item_name })

if agentcan_global_helper(context, 'create %s' % item.item_type_string):
list_items.append('<li><a href="%s" tabindex="-1" title="Copy" class="copy"><i class="demeicon demeicon-copy"></i> Copy</a></li>' % copy_url)
Expand Down

0 comments on commit b0acdc2

Please sign in to comment.