Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
entity_reference.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2015 at 07:48 UTC
Updated:
26 Sep 2015 at 14:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
andypostInitial fix, not sure
$field->set('settings', $settings)is right but it worksComment #2
jibranThe fix is purely in Vocabulary.php so it belongs to taxonomy queue. I'll ping @amateescu.
Comment #3
andypostHere's a test, somehow this does not work with patch
Comment #7
alx_benjamin commentedThe test passed on my local but failing on drupal site.
Will be looking into it more.
-------------------------------------------------
Sponsored by http://reallifedesign.co.uk/
Comment #8
alx_benjamin commentedWe are trying to run tests on both patches separately where as they should be tested together.
So in this patch I merged both patches into one. Let's see if it will pass test this time.
-------------------------------------------------
Sponsored by http://reallifedesign.co.uk/
Comment #9
larowlanLooks good, couple of minor issues
Any reason we lost the getType() check?
nit: === instead of ==
nit: needs a space before the =
nit: 'Field does not' instead of 'Field not'
Comment #10
alx_benjamin commentedCorrected and attached as per comment #9
-------------------------------------------------
Sponsored by http://reallifedesign.co.uk/
Comment #11
andypostother points are valid except
it's not needed! because above we get ER fields only from map
Comment #12
andypostFixed patch
Comment #13
amateescu commentedThis looks like a duplicate of #1978714: Entity reference doesn't update its field settings when referenced entity bundles are deleted.
Comment #14
andypostIntroduction of more generic approach is a feature, also related issue has interdependency
I think better to fix annoying bug first that could lead to data-loss
Comment #15
alx_benjamin commentedI think patch 2467293-vocabulary-12.patch is a good one.
Shall we move it to 'Reviewed and tested by the community'?
-------------------------------------------------
Sponsored by http://reallifedesign.co.uk/
Comment #16
yched commentedusing the generic ->set() is weird, why not use the dedicated getSettings() / setSettings(), or directly the more focused ->getSetting('handler_settings') / ->setSetting('handler_settings', $new_value) ?
Comment #17
legolasboComment #18
claudiu.cristeaWhy not focusing on #1978714-46: Entity reference doesn't update its field settings when referenced entity bundles are deleted? That is the generic fix and we can get that in without #2412569: Allow setting the auto-create bundle on entity reference fields with multiple target bundles.
Comment #19
amateescu commented#1978714: Entity reference doesn't update its field settings when referenced entity bundles are deleted is quite active at the moment and it's fixing this bug.