From 2ed34dda151c8af460ec82ee7bd3023e3d9030f7 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 18 Dec 2018 20:23:13 -0600 Subject: [PATCH] Make sure custom field labels are shown for batch execution dialog --- tailbone/views/batch/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tailbone/views/batch/core.py b/tailbone/views/batch/core.py index 886b078d..d019b585 100644 --- a/tailbone/views/batch/core.py +++ b/tailbone/views/batch/core.py @@ -747,6 +747,11 @@ class BatchMasterView(MasterView): if key in self.request.session: 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: schema = colander.Schema()