Commit 467ae656 authored by Jérome Perrin's avatar Jérome Perrin

Listbox: use editable field for rendering in report summary

Signed-off-by: Aurel's avatarAurélien Calonne <aurel@nexedi.com>
parent 04258a4e
...@@ -2378,9 +2378,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine): ...@@ -2378,9 +2378,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
# If a field is editable, generate an input form. # If a field is editable, generate an input form.
# XXX why don't we generate an input form when a widget is not defined? # XXX why don't we generate an input form when a widget is not defined?
editable_field = None editable_field = renderer.getEditableField(alias)
if not self.isSummary():
editable_field = renderer.getEditableField(alias)
# Prepare link value - we now use it for both static and field rendering # Prepare link value - we now use it for both static and field rendering
no_link = self.isSummary() no_link = self.isSummary()
...@@ -2488,7 +2486,8 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine): ...@@ -2488,7 +2486,8 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
value=display_value, value=display_value,
REQUEST=request, REQUEST=request,
key=key, key=key,
editable=listbox_defines_column_as_editable and editable, editable=(not self.isSummary()) \
and listbox_defines_column_as_editable and editable,
) )
if isinstance(cell_html, str): if isinstance(cell_html, str):
cell_html = unicode(cell_html, encoding) cell_html = unicode(cell_html, encoding)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment