Make sure custom field labels are shown for batch execution dialog
This commit is contained in:
parent
5151e2dd96
commit
2ed34dda15
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue