Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
It would be great if geocoder_field didn't add third party settings to fields it wasn't configured to do anything on (ie when geocoding method is set to none). Especially now that #2842272: Use #states to hide geocoder field settings when not geocoding anything has been merged in.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2884928-5.geocoder-omit_third_party_settings-d8.patch | 999 bytes | dww |
#2 | geocoder-omit_third_party_settings-2884928-2-D8.patch | 1.02 KB | AndyF |
Comments
Comment #2
AndyF CreditAttribution: AndyF at TES Global commentedComment #3
dawehnerNice! Do you think it would be worth writing a test for that?
Comment #4
PolHello,
What is the status of this patch ? Is it still valid ?
Thanks.
Comment #5
dwwDefinitely still valid.
However, patch #2 doesn't apply cleanly to the end of the 8.x-2.x branch, so here's a trivial re-roll.
Before the patch, here's an example config from a test site for a field that has nothing to do with addresses or geocoding:
Notice all the cruft about geocoder_field? Both in third_party_settings, and also the fact the field config now *depends* on geocoder_field (even though it's not related to geocoder at all!).
After applying the patch and re-saving the field settings, the config export now looks like this:
MUCH better! No bogus dependency, and no ignored third_party_settings related to functionality this field has nothing to do with.
Comment #6
dwwp.s. By default, d.o's 'Git command' is now using me as the author. Please don't. This is @AndyF's code and they should get credited as the patch author, not me.
Comment #8
itamair CreditAttribution: itamair as a volunteer commentedI just tested ... and indeed still make sense. Tnx. Just committed in the last dev.
Comment #9
itamair CreditAttribution: itamair as a volunteer commented