Unverified Commit 32216771 authored by John Chilton's avatar John Chilton Committed by GitHub
Browse files

Merge pull request #10851 from mvdbeek/add_title_fallback

[20.01] Fix workflow preview for repeats without title
parents 83e57ffb f1311e89
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -71,13 +71,21 @@ class Repeat(Group):

    def __init__(self):
        Group.__init__(self)
        self.title = None
        self._title = None
        self.inputs = None
        self.help = None
        self.default = 0
        self.min = None
        self.max = None

    @property
    def title(self):
        return self._title or self.name

    @title.setter
    def title(self, value):
        self._title = value

    @property
    def title_plural(self):
        return inflector.pluralize(self.title)