Commit b58e42e2 authored by John Voskuilen's avatar John Voskuilen
Browse files

Issue #2317877: Fixed regression Fatal error: __clone method called on...

Issue #2317877: Fixed regression Fatal error: __clone method called on non-object in workflow.features.inc
parent ea339c3c
Loading
Loading
Loading
Loading
+1 −0
Changes for CHANGELOG.txt: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -585,3 +585,4 @@ Issue #2312243: Fixed Notice: Trying to get property of non-object in _workflow_
Issue #2304365 by mgadrat: Fixed error in Rules 'Set workflow value' action when using Workflow Node.
Issue #2323025: Reverted deprecation of Rules Action 'Set a Workflow Field State'.
Issue #2323025: Updated Rules Action 'Set a Workflow Field State'.
Issue #2317877: Fixed regression Fatal error: __clone method called on non-object in workflow.features.inc
+3 −1
Changes for workflow.features.inc: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -52,7 +52,9 @@ class WorkflowFeaturesController extends EntityDefaultFeaturesController {
    $code[] = '';
    foreach ($data as $identifier) {
      // Clone workflow to make sure changes are not propagated to original.
      if ($workflow = clone entity_load_single($this->type, $identifier)) {
      if ($workflow = entity_load_single($this->type, $identifier)) {
        // Make sure data is not copied to the database.
        $workflow = clone $workflow;
        // Modification for the Workflow object:
        // For mapping workflow_field, add original wid in case target system
        // already contains workflows.