diff --git a/lms/templates/wiki/plugins/attachments/index.html b/lms/templates/wiki/plugins/attachments/index.html index 7abdf3049b..a8de428a21 100644 --- a/lms/templates/wiki/plugins/attachments/index.html +++ b/lms/templates/wiki/plugins/attachments/index.html @@ -87,7 +87,7 @@ {% if attachment|can_write:user %} {% if not attachment.current_revision.deleted %} - {% if 'attachment.article = article' %} + {% if attachment.article == article %} {% trans "Delete" %} {% else %} {% trans "Detach" %}