Make sure custom field labels are shown for batch execution dialog

This commit is contained in:
Lance Edgar 2018-12-18 20:23:13 -06:00
parent 5151e2dd96
commit 2ed34dda15

View file

@ -747,6 +747,11 @@ class BatchMasterView(MasterView):
if key in self.request.session: if key in self.request.session:
defaults[field.name] = self.request.session[key] defaults[field.name] = self.request.session[key]
# make sure field label is preserved
if field.title:
labels = kwargs.setdefault('labels', {})
labels[field.name] = field.title
else: else:
schema = colander.Schema() schema = colander.Schema()