File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Classes/Domain/Model/Changes Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,9 @@ public function apply(): void
70
70
),
71
71
$ subject ->workspaceName ,
72
72
$ subject ,
73
- OriginDimensionSpacePoint::fromDimensionSpacePoint ($ subject ->dimensionSpacePoint ),
73
+ // NOTE: in order to be able to copy/paste across dimensions, we need to use
74
+ // the TARGET NODE's DimensionSpacePoint to create the node in the target dimension.
75
+ OriginDimensionSpacePoint::fromDimensionSpacePoint ($ previousSibling ->dimensionSpacePoint ),
74
76
$ parentNodeOfPreviousSibling ->aggregateId ,
75
77
$ succeedingSibling ?->aggregateId
76
78
);
Original file line number Diff line number Diff line change @@ -65,7 +65,9 @@ public function apply(): void
65
65
),
66
66
$ subject ->workspaceName ,
67
67
$ subject ,
68
- OriginDimensionSpacePoint::fromDimensionSpacePoint ($ subject ->dimensionSpacePoint ),
68
+ // NOTE: in order to be able to copy/paste across dimensions, we need to use
69
+ // the TARGET NODE's DimensionSpacePoint to create the node in the target dimension.
70
+ OriginDimensionSpacePoint::fromDimensionSpacePoint ($ succeedingSibling ->dimensionSpacePoint ),
69
71
$ parentNodeOfSucceedingSibling ->aggregateId ,
70
72
$ succeedingSibling ->aggregateId
71
73
);
Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ public function apply(): void
74
74
),
75
75
$ subject ->workspaceName ,
76
76
$ subject ,
77
- OriginDimensionSpacePoint::fromDimensionSpacePoint ($ subject ->dimensionSpacePoint ),
77
+ // NOTE: in order to be able to copy/paste across dimensions, we need to use
78
+ // the TARGET NODE's DimensionSpacePoint to create the node in the target dimension.
79
+ OriginDimensionSpacePoint::fromDimensionSpacePoint ($ parentNode ->dimensionSpacePoint ),
78
80
$ parentNode ->aggregateId ,
79
81
null
80
82
);
You can’t perform that action at this time.
0 commit comments