Skip to content

vt7: Time Interval Workflows and getMaxAllowedScheduledWorkflows()

One of our customers just reported that they couldn't see the information in the Time Interval panel when editing or adding a new workflow.

After a bit of digging it turns out that if you have 11 Time-Interval based workflows then the panel which displays the configuration is simply hidden - for all workflows.

In layouts/v7/modules/Settings/Workflows/WorkflowTrigger.tpl you will see the line:

{if $SCHEDULED_WORKFLOW_COUNT <= $MAX_ALLOWED_SCHEDULED_WORKFLOWS}

Afterwards there is nothing.

$MAX_ALLOWED_SCHEDULED_WORKFLOWS is equal to 10 which is returned from the getMaxAllowedScheduledWorkflows() function in VTWorkflowManager.inc

This is response really confusing to the end-user. There should be a message or something displayed, instead of the Time Interval panel, stating the maximum number has been exceeded, rather than just nothing...