Closed (works as designed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
field system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 May 2013 at 00:22 UTC
Updated:
29 Jul 2014 at 22:21 UTC
I created a content type, and set a default value. When I created a piece of content of this type, the default value that I set did not show up in the edit form. When I entered a value and saved the piece of content, the original default value was shown instead of the value I entered. I got this error: "Warning: Invalid argument supplied for foreach() in Drupal\Core\Entity\Entity->__construct() (line 72 of core/lib/Drupal/Core/Entity/Entity.php)."
To reproduce:
I'd expect the default value to prepopulate the text field when creating a piece of content, and for that value to be overridden if I enter a value and then save it.
Comments
Comment #1
swentel commentedThis even got worse now, you can't even set a default value anymore
This affects others maybe too.
Comment #2
swentel commentedActually, my bad, had a wrong setup, this works fine now, probably fixed in another issue.