Uploaded image for project: 'Magnolia Workflow Module'
  1. Magnolia Workflow Module
  2. MGNLWORKFLOW-259

Add validators to workflow dialog fields

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.3.3, 5.4.1
    • 5.3, 5.4
    • None
    • None
    • Yes

      The fields configured in /modules/workflow/dialogs/publish/form/tabs/comment/fields don't accept validators, so no standard validation (i.e. required=true for comment) is possible at the moment.

      From a support ticket:

      Zdenek Skodik added a comment - 04/Jul/14 12:19 PM

      Hi,

      the workflow dialogs are kind of specific on purpose dialogs, so that they have their own presenter class that is partially responsible for the fact that the common dialog validation doesn't work there - see /modules/workflow/dialogs/publish/presenterClass. It binds the involved elements - activation actions, forms, passing parameters (comment, scheduled date) around, creating the form actions ad hoc. So at the moment the validation can only be provided by code, e.g. by overriding the #executeAction() of the presenter. Feel free to open an improvement ticket at the workflow project.

      Kind regards,
      Zdenek

        Acceptance criteria

              ejervidalo Espen Jervidalo
              mkoller Markus Koller
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD