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

Issue #3418870: Restructure save() method, avoiding duplicate inserts

parent a0376427
Branches
Tags
No related merge requests found
Pipeline #98588 canceled
......@@ -578,7 +578,7 @@ class WorkflowTransition extends ContentEntityBase implements WorkflowTransition
*/
if ($this->isScheduled()) {
// Log the transition in {workflow_transition_scheduled}.
$this->save(); // jvo
$this->save();
}
else {
// The transition is allowed, but not scheduled.
......@@ -592,7 +592,7 @@ class WorkflowTransition extends ContentEntityBase implements WorkflowTransition
if (!$this->isEmpty()) {
// Log the transition in {workflow_transition_history}.
$this->save(); // jvo
$this->save();
// Register state change with watchdog.
if ($this->hasStateChange() && !empty($this->getWorkflow()->getSetting('watchdog_log'))) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment