Skip to content

Content Items event handler, UpdatingAsync method: property "part" and "context.UpdatingItem.Elements" has always null properties #15952

Answered by Piedone
MarGraz asked this question in Q&A
Discussion options

You must be logged in to vote

I believe when you say new/existing "Content Type", you mean "content item" instead.

  • The Validate* handlers are only called from ContentManager.ValidateAsync(). This seems correct.
  • UpdatingAsync being called for a new content type also seems correct if you check out where it's called.
  • UpdatingAsync receiving null in its part parameter for new content items doesn't seem correct. However, that's not what I see in your screenshot. It being empty (but not `null) is expected, since this event is called before the content item is updated with new data from POST. Due to this, it's also expected that you'll see some value (the old one, before the update) for an existing content item.
  • You can add…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@MarGraz
Comment options

@Piedone
Comment options

@MarGraz
Comment options

@Piedone
Comment options

Answer selected by MarGraz
@MarGraz
Comment options

@Piedone
Comment options

@MarGraz
Comment options

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