7.4.3 Grid default value not null with one column one row setup
Hi,
I have a grid with only one column layout and one row layout.
When editing the page the grid is pre-populated with one column containing one row but no editors.
With this setup the default value of the grid is not null when publishing a page, but instead a grid model with one column and one row, without editors.
This scenario breaks the recursive mechanism when getting the property value, since the grid isnt null.
Anyone else have this issue and know how to fix this?
Update: I've created a fix that hooks into contentservice saving event that checks if the Umbraco.Grid-property has zero controls added to it and then removes the propertyvalue.
7.4.3 Grid default value not null with one column one row setup
Hi,
I have a grid with only one column layout and one row layout. When editing the page the grid is pre-populated with one column containing one row but no editors.
With this setup the default value of the grid is not null when publishing a page, but instead a grid model with one column and one row, without editors.
This scenario breaks the recursive mechanism when getting the property value, since the grid isnt null.
Anyone else have this issue and know how to fix this?
Regards, Martin
Update: I've created a fix that hooks into contentservice saving event that checks if the Umbraco.Grid-property has zero controls added to it and then removes the propertyvalue.
Seems to work but its not a very pretty solution.
is working on a reply...