Lakion / CmsPlugin

Simple CMS on top of SymfonyCMF for Sylius applications.
http://lakion.com
26 stars 20 forks source link

Also keep route grid working when no static content is linked #55

Closed stefandoorn closed 7 years ago

stefandoorn commented 7 years ago

Mainly it was an issue on my fixtures side, as I forgot to link a StaticContent object to the Route object I was importing. But, as soon as a StaticContent seems gone and the Route cannot find the relation anymore, the grid errors that the data.title is not available (data is null). It doesn't harm to add this if statement I think, as it helps to keep the grid running even though there is some content missing somewhere.

stefandoorn commented 7 years ago

Adjusted it, your suggestion should work :)

michalmarcinkowski commented 7 years ago

Thanks Stefan! 👍