diff --git a/HISTORY.rst b/HISTORY.rst index a341252b8d..4876ddc3eb 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -7,6 +7,8 @@ saving the database and to only provision 1 database. * Remove use of hard coded font icon for document page rendering busy indicator. +* Disable the fancybox caption link if the document is + in the trash. 3.1.3 (2018-09-27) ================== diff --git a/mayan/apps/documents/widgets.py b/mayan/apps/documents/widgets.py index f191bf0a1a..700faa98a7 100644 --- a/mayan/apps/documents/widgets.py +++ b/mayan/apps/documents/widgets.py @@ -59,7 +59,8 @@ class DocumentPageThumbnailWidget(object): return render_to_string( template_name='documents/widgets/document_thumbnail.html', context={ - 'disable_title_link': False, + # Disable the clickable link if the document is in the trash + 'disable_title_link': instance.in_trash, 'gallery_name': 'document_list', 'instance': instance, 'size_preview_width': setting_preview_width.value,