Skip to content
Snippets Groups Projects
Commit 212ff834 authored by John Voskuilen's avatar John Voskuilen
Browse files

Issue #3525839: Test (mismatched) Workflow on comment, using operator '?->'...

Issue #3525839: Test (mismatched) Workflow on comment, using operator '?->' also on many other places
parent 28d8828b
Branches
Tags
No related merge requests found
Pipeline #503640 passed with warnings
......@@ -118,7 +118,6 @@ class WorkflowItem extends ListItemBase {
public static function defaultStorageSettings() {
$settings = [
'workflow_type' => '',
// Do not change. @see https://www.drupal.org/project/drupal/issues/2643308
'allowed_values_function' => 'workflow_state_allowed_values',
] + parent::defaultStorageSettings();
return $settings;
......
......
......@@ -324,7 +324,7 @@ class WorkflowStateListBuilder extends DraggableListBuilder {
$args = [
'%workflow' => $workflow->label(),
'%old_state' => $state->label(),
'%new_state' => isset($new_state) ? $new_state->label() : '',
'%new_state' => $new_state?->label() ?? '',
];
if ($value['count'] > 0) {
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment