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

Issue #3524614 by gigimaor: Error on Transition Timestamp - no owner in the default value

parent f97e8402
Branches
Tags 2.0.0-beta1
No related merge requests found
Pipeline #500299 passed with warnings
...@@ -1130,6 +1130,8 @@ class WorkflowTransition extends ContentEntityBase implements WorkflowTransition ...@@ -1130,6 +1130,8 @@ class WorkflowTransition extends ContentEntityBase implements WorkflowTransition
$fields += static::ownerBaseFieldDefinitions($entity_type); $fields += static::ownerBaseFieldDefinitions($entity_type);
$fields['uid'] $fields['uid']
->setDescription(t('The user ID of the transition author.')) ->setDescription(t('The user ID of the transition author.'))
// ->setDefaultValueCallback('workflow_current_user')
->setDefaultValueCallback(static::class . '::getDefaultEntityOwner')
->setRevisionable(TRUE); ->setRevisionable(TRUE);
$fields['from_sid'] = BaseFieldDefinition::create('list_string') $fields['from_sid'] = BaseFieldDefinition::create('list_string')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment