Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
field system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Jan 2014 at 10:08 UTC
Updated:
8 Jun 2015 at 19:34 UTC
Jump to comment: Most recent
Comments
Comment #1
chx commentedComment #2
chx commentedSo the default settings is
And a given setting looks like this
And somehow
$settings['allowed_values'][0]['parent']and$settings['allowed_values'][1]['parent']both needs to be set to$default_values['allowed_values'][0]['parent']. I can't possibly see how we could do that in a generic fashion.Comment #3
chx commentedI believe the solution is to split up https://drupal.org/node/2124403 into separate pages and add this warning to create:
"Beware that settings defaults from the field type annotation are only added for top level keys. For example, in TermFieldMultipleVocabularyTest::setUp if 'parent' => 0 were removed, it would not get merged in because the top level 'allowed_values' key would still exist."
Comment #4
yched commentedYup.
Comment #5
chx commentedhttps://www.drupal.org/node/2124403/revisions/view/8272119/8498153