Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martin Almström 33 posts 159 karma points
    Jun 03, 2016 @ 07:11
    Martin Almström
    0

    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

  • Martin Almström 33 posts 159 karma points
    Jun 03, 2016 @ 08:06
    Martin Almström
    1

    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.

Please Sign in or register to post replies

Write your reply to:

Draft