Why my metadata.ContainerType is wrong when I use ModifyMetadata?(It is correct in CMS10 but wrong in CMS11)

Vote:
 

I bound "[EditorDescriptor(EditorDescriptorType = typeof(WindowOpenEditorDescriptor))]" on the property ContactDepartments in "KontaktaossPage" like this:

Then I use modifyMetadata as follows:

But the metadata.ContainerType is wrong like the picture above, it should be "typeof(KontaktaossPage)".

The result of this code executed in CMS10 is correct, but when I upgrade to CMS11, the result is as above. I don’t know if CMS11 has made any changes.

The result in CMS10 is as follow:

#226175
Edited, Aug 06, 2020 9:05
Vote:
 

Hi, 

I think you can try with this metadata.Parent.Model in the CMS11

#226198
Aug 07, 2020 4:37
Chen Nan - Aug 11, 2020 3:11
Hi Binh, the metadata.Parent is null.


Vote:
 

I don't know why the parent is null

#226332
Aug 11, 2020 3:10
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.