show combo box only for new work items not when editing existing ones

This commit is contained in:
Helmut Merz 2015-04-26 15:44:32 +02:00
parent aef3d2e139
commit 070cb50a54

View file

@ -411,6 +411,8 @@ class CreateWorkItemForm(ObjectForm, BaseTrackView):
@Lazy
def titleSelection(self):
result = []
if self.title:
return result
dt = adapted(self.conceptManager.get('organize.work.texts'))
if dt is None or not dt.data:
return result