Missing has_data line

svn: r20116
This commit is contained in:
Doug Blank 2012-07-27 15:48:58 +00:00
parent 371f34bb75
commit 8247c24e3e

View File

@ -764,6 +764,7 @@ def reference_table(obj, user, act, url=None, *args):
_("ID")) _("ID"))
if user.is_authenticated(): if user.is_authenticated():
pass pass
## FIXME: missing table?
retval += table.get_html() retval += table.get_html()
retval += nbsp("") # to keep tabs same height retval += nbsp("") # to keep tabs same height
if has_data: if has_data:
@ -776,7 +777,6 @@ def person_reference_table(obj, user, act):
cssid = "tab-references" cssid = "tab-references"
text1 = "" text1 = ""
text2 = "" text2 = ""
has_data = False
table1 = Table("person_reference_table", style="background-color: #f4f0ec;") table1 = Table("person_reference_table", style="background-color: #f4f0ec;")
table1.columns( table1.columns(
"As Spouse", "As Spouse",
@ -1071,6 +1071,7 @@ def children_table(obj, user, act, url=None, *args):
childref.mother_rel_type, childref.mother_rel_type,
date_as_text(child.birth, user), date_as_text(child.birth, user),
) )
has_data = True
links.append(('URL', childref.get_url())) links.append(('URL', childref.get_url()))
count += 1 count += 1
else: else: