Projet

Général

Profil

0001-workflows-exclude-prefill-display-option-from-workfl.patch

Frédéric Péters, 02 novembre 2021 13:01

Télécharger (1,23 ko)

Voir les différences:

Subject: [PATCH] workflows: exclude prefill & display option from workflow
 option fields (#13621)

 wcs/admin/workflows.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
wcs/admin/workflows.py
937 937

  
938 938
class WorkflowVariablesFieldDefPage(FieldDefPage):
939 939
    section = 'workflows'
940
    blacklisted_attributes = ['condition']
940
    blacklisted_attributes = ['condition', 'prefill', 'display_locations']
941 941

  
942 942
    def form(self):
943 943
        form = super().form()
......
951 951
            required=True,
952 952
            workflow=self.objectdef.workflow,
953 953
        )
954
        display_locations = form.get_widget('display_locations')
955
        if display_locations:
956
            # remove validation page from choices
957
            display_locations.options = display_locations.options[1:]
958 954
        return form
959 955

  
960 956

  
961
-