From 6060924ee339832297944d9fd61f2915f2ce49b3 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 20 Apr 2017 12:28:46 -0400 Subject: [PATCH] Use the context variable 'object' instead of 'resolved_object' to make sure the document version in the list is being resolved and not the view's Document or a document signature isntance. Signed-off-by: Roberto Rosario --- mayan/apps/documents/links.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/documents/links.py b/mayan/apps/documents/links.py index 436273eab8..d33002f4d0 100644 --- a/mayan/apps/documents/links.py +++ b/mayan/apps/documents/links.py @@ -20,7 +20,7 @@ from .settings import setting_zoom_max_level, setting_zoom_min_level def is_not_current_version(context): - return context['resolved_object'].document.latest_version.timestamp != context['resolved_object'].timestamp + return context['object'].document.latest_version.timestamp != context['object'].timestamp def is_first_page(context):