I have the following situation: In a DataObject I have a list of formfields in getFrontendFields of which some are readonly (performReadonlyTransformation) when _updating_ the dataobject. So when I _add_ a dataobject I can fill in things like ManufacturedDate and when I _edit_ the DataObject the ManufacturedDate is readonly but other fields (such as Status) are editable.
The problem is, is that when I change the Status during _editing_, the ManufacturedDate is reset to NULL. Even though I filled in 2013 when I _added_ the dataobject, when I edit it and _only_ change the Status (and ManufacturedDate is readonly) the ManufacturedDate gets saved/reset to NULL.
This was NOT the case in Silverstripe 2.*. It has only been happening since 3.*. What is best practice to prevent this from happening? Do I really need to add a hidden field with the current ManufacturedDate in it? That seems so messy. Somehow I'm missing something in the docs... can someone please point me in the right direction?