Fix cell(User Name) inline edit with a link in user table
We implement user table inline edit and user detail, so the User Name cell will show input element as text while edting inline because the cell data will be escaped while the cell has url, the patch fix it. Closes-Bug: 1410832 Change-Id: Ic249259961624cc52f54c53a8cceb9f1a439e9bf
This commit is contained in:
parent
67dee8e968
commit
5131a08a1a
|
@ -734,7 +734,7 @@ class Cell(html.HTMLElement):
|
|||
raise six.reraise(template.TemplateSyntaxError, exc_info[1],
|
||||
exc_info[2])
|
||||
|
||||
if self.url:
|
||||
if self.url and not self.column.auto == "form_field":
|
||||
link_attrs = ' '.join(['%s="%s"' % (k, v) for (k, v) in
|
||||
self.column.link_attrs.items()])
|
||||
# Escape the data inside while allowing our HTML to render
|
||||
|
|
Loading…
Reference in New Issue