Commit 5941385
committed
Fixed bug in
When moving a `ContentTypeDescriptor` to a different parent, the `ContentTypeDescriptor.AttributeDescriptors` collections of each descendant `ContentTypeDescriptor` must be updated, since those will contain cached references to `AttributeDescriptor`s inherited from their parents.
While this code was in place, it compared the `topic.Parent` to the `target` (parent) _after_ `topic` had _already_ been moved to `target`. As such, this code would never fire, because it would never appear as though the `ContentTypeDescriptor` was being moved to a _new_ parent. Oops.
This fixes this by storing a reference to the previous parent, and then comparing that to the target after calling `SetParent()`.Move() related to updating AttributeDescriptors
1 parent 3f952a6 commit 5941385
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| 437 | + | |
437 | 438 | | |
438 | 439 | | |
439 | 440 | | |
| |||
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
447 | | - | |
| 448 | + | |
448 | 449 | | |
449 | 450 | | |
450 | 451 | | |
| |||
0 commit comments