Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

GroupName Ignored after MigrationStep Property Rename

$
0
0

Hi Guys

I recently renamed a property to a new name. I created a MigrationStep (https://world.episerver.com/documentation/developer-guides/CMS/Content/Refactoring-content-type-classes/) to manage the name change.

The migration went ok, the property is renamed, the data is in there, BUT the GroupName is ignored - the property is now in Content.

It looks exactly the same issue as this: https://world.episerver.com/forum/legacy-forums/Episerver-7-CMS/Thread-Container/2013/7/GroupName-not-getting-updated-from-code/ but it seems it still hasn't been fixed as I am on EPiServer.CMS v11.13.2 and that was about EPiServer 7.

I found the reason is that in tblPropertyDefinition, the MigrationStep set the Advanced property from NULL to 0.

If I change the property to NULL manually (on my local copy of the db) then the content is in the correct tab, the same one the original property was in. 

Is there a way to set that Advanced field to null in code without actually going via the DB? Is there something I did wrong? 


Viewing all articles
Browse latest Browse all 8020

Trending Articles