Skip to content

Trouble saving changes for a widget in a deeply nested FlowPart during migration. #9885

Discussion options

You must be logged in to vote

I finally figured this out. Only took me a few hours of experimentation, source code analysis, and annoyance. XD

First, it looks like I have to assign a new List<ContentItem> to the set of widgets on the FlowPart in order for it to properly recognize that the Widgets property has changed. If I just inline modify the Widgets in question, it doesn't appear to actually update the nested data. So, I assigned the widgets to themselves with a Select(...) statement via LINQ, remapping the widgets I needed to change as needed. This ended up being simple for the higher up FlowParts (steps, fieldsets) since they just returned the same ContentItem, whereas the deepest FlowPart (for field widgets) ne…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@willnationsdev
Comment options

Comment options

You must be logged in to vote
3 replies
@Skrypt
Comment options

@willnationsdev
Comment options

@Skrypt
Comment options

Answer selected by willnationsdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants