Skip to content

Commit 6c3b5f7

Browse files
Fix: Stop loading workflow graph assets when workflows are disabled (#47224)
1 parent d46d77c commit 6c3b5f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libraries/src/MVC/Model/WorkflowBehaviorTrait.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,10 @@ protected function addTransitionField(Form $form, $data)
340340
$field->addAttribute('type', $this->workflowEnabled ? 'transition' : 'hidden');
341341
$field->addAttribute('label', 'COM_CONTENT_WORKFLOW_STAGE');
342342
$field->addAttribute('extension', $extension);
343-
$field->addAttribute('layout', 'joomla.form.field.groupedlist-transition');
343+
344+
if ($this->workflowEnabled) {
345+
$field->addAttribute('layout', 'joomla.form.field.groupedlist-transition');
346+
}
344347

345348
$form->setField($field);
346349

0 commit comments

Comments
 (0)