Only the modified date is set, but the user remains empty until the next save (edit)
I can see where that comes from, since with MySQL strict mode the modified column can't be an empty string. It has to be a valid date or the "nulldate".
However apparently it somehow works for com_fields where creating a field has the same behavior as in J3: The modified date is only populated after the first successive save/edit. I think it's because com_fields, the modified date has filter="unset"
in the XML which means it gets nulled during validation.
We should choose a way how we want to handle that date and be consistent across all extensions, either always setting it (but then also the user) or only after an edit (like com_fields).
Labels |
Added:
?
|
Category | ⇒ | com_content |
Status | New | ⇒ | Information Required |
I don't think it does fix the underlying issue, because I think it would still not accept an empty string or null.
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-06-02 08:00:15 |
Closed_By | ⇒ | Bakual |
This PR should solve the issue:
#11530
As it should be merged into 4.0 too.