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 <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user