Commit 973e6b4f authored by alexpott's avatar alexpott

Issue #2855428 by Sam152, jhedstrom, timmillwood: Workflow state and...

Issue #2855428 by Sam152, jhedstrom, timmillwood: Workflow state and transition add/edit form IDs have a '-' in them
parent 57b145bf
......@@ -90,7 +90,7 @@ public function getFormId() {
$form_id .= '_' . $this->entity->bundle();
}
if ($this->operation != 'default') {
$form_id = $form_id . '_' . $this->operation;
$form_id = $form_id . '_' . str_replace('-', '_', $this->operation);
}
return $form_id . '_form';
}
......
......@@ -97,6 +97,11 @@ public function providerTestFormIds() {
'bundle' => '',
'operation' => 'delete',
)),
array('workflow_edit_state_form', array(
'entity_type' => 'workflow',
'bundle' => '',
'operation' => 'edit-state',
)),
);
}
......
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