misc: give ods sheet the formdef name (#41001)

This commit is contained in:
Frédéric Péters 2020-03-25 11:42:35 +01:00
parent b58673beaf
commit fb54381760
1 changed files with 1 additions and 1 deletions

View File

@ -1789,7 +1789,7 @@ class FormPage(Directory):
def export(self, job=None):
w = ods.Workbook(encoding=get_publisher().site_charset)
ws = w.add_sheet('1')
ws = w.add_sheet(self.formdef.name)
for i, f in enumerate(self.formpage.csv_tuple_heading(self.fields)):
ws.write(0, i, f)