Projet

Général

Profil

0001-workflows-don-t-fail-on-commentable-action-not-havin.patch

Frédéric Péters, 11 septembre 2015 11:38

Télécharger (1,09 ko)

Voir les différences:

Subject: [PATCH] workflows: don't fail on "commentable" action not having a
 button (#8241)

 wcs/workflows.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
wcs/workflows.py
1118 1118
                form.add_submit('button%s' % self.id, _('Add Comment'))
1119 1119
            elif self.button_label:
1120 1120
                form.add_submit('button%s' % self.id, self.button_label)
1121
            form.get_widget('button%s' % self.id).backoffice_info_text = self.backoffice_info_text
1121
            if form.get_widget('button%s' % self.id):
1122
                form.get_widget('button%s' % self.id).backoffice_info_text = self.backoffice_info_text
1122 1123

  
1123 1124
    def submit_form(self, form, formdata, user, evo):
1124 1125
        if form.get_widget('comment'):
1125
-