Skip to content
Snippets Groups Projects
Unverified Commit e4c48af8 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2972365 by andrewmacpherson, msankhala, Sam152: Unlabeled checkboxes...

Issue #2972365 by andrewmacpherson, msankhala, Sam152: Unlabeled checkboxes for selecting bundles in workflow edit form
parent bacd6578
No related branches found
No related tags found
No related merge requests found
......@@ -119,6 +119,7 @@ public function buildForm(array $form, FormStateInterface $form_state, WorkflowI
// Add the bundle to the options if it's not enabled on a workflow,
// unless the workflow it's enabled on is this one.
$options[$bundle_id] = [
'title' => ['data' => ['#title' => $bundle['label']]],
'type' => $bundle['label'],
];
// Add the bundle to the list of default values if it's enabled on this
......
......@@ -96,6 +96,7 @@ public function testNewWorkflow() {
$session->pageTextContains('Select the content types for the Test workflow');
foreach ($types as $type) {
$session->pageTextContains($type->label());
$session->elementContains('css', sprintf('.form-item-bundles-%s label', $type->id()), sprintf('Update %s', $type->label()));
}
// Ensure warning message are displayed for unsupported features.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment