Default date value overwrites existing one

Is this a bug or a feature: When setting a blueprint datefield like this:

date :
  label: Created
  type:  date
  format: DD.MM.YYYY
  default:  today

… it overwrites the field on every save. Obviously, the original value should be kept (as opposed to a „changed“ field maybe).

  1. Is there a way to do this?
  2. Is this a bug which should be filed in an issue?

Thanks for any tips!

That’s odd. I have a field setup exactly like this and it works like a charm. It only overwrites the value if the field is empty, otherwise it’s keeping the date I’ve set.

Did you check if the field data is correctly saved into the relating .txt file? Should look like this: Date: 2015-06-23

You’re right, it’s working. I was a bit too trigger-happy in forwarding user complaints. They probably edited older articles with empty fields.

Yep that might be it. Well at least everything is fine then :smile: