Unverified Commit e4c48af8 authored by alexpott's avatar alexpott

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
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment