Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
entity_reference.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Jun 2015 at 20:55 UTC
Updated:
20 Jul 2015 at 19:24 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
webchickEasy fix, easy issue! :) (As long as you can figure out where this text is coming from, which I haven't successfully yet.)
Comment #2
cilefen commentedI know - I tried.
Comment #3
davidhernandezcore/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.phpCONTAINSandSTARTS_WITHshould both be fixed, I assume.Comment #4
dorficus commentedComment #5
ivanstegic commentedI don't think this is an easy fix, actually. The "CONTAINS" and "STARTS_WITH" SQL keywords are actually the Keys in a dropdown somewhere, and to me, at least at this high level, it looks like those KEYS are being used in the widget, and not the VALUES. The only reason I say this is because it looks like there are already translate-able values in the referenced file:
Removing the novice tag because I couldn't find where this is in the code, neither could @webchick and because this really should be a translate-able, right?
Comment #6
dorficus commentedI'll go ahead and take myself off of it then. Thanks, ivanstegic.
Comment #7
dorficus commentedComment #8
davidhernandezThe text in question is printed below in
settingsSummary().Comment #9
davidhernandezThe settings form is what you actually see when you click the gear to change the settings.
Comment #10
webchickRight, so it seems like maybe we need a helper method that returns an array of settings in 'KEY' => t('Friendly') format, and then just call it from both places?
Comment #11
davidhernandezSure.
getMatchOperatorOptions()or something? Use the array directly in settingsForm() and search it in settingsSummary().Comment #12
ivanstegic commentedIs this solution also going to fix the error message? IIRC this was in the error message as well.
Comment #13
davidhernandezI'm not sure which error message that would be. Can you provide steps to produce it?
Comment #14
ivanstegic commented@webchick do you remember how this was reproduced? I was trying to remember and checked the spreadsheet but could not for the life of me figure it out. Maybe the video will contain it?
Comment #15
webchickNo, sorry... I didn't actually see it happen. :( I think it was either you or Link who noted it.
Looks like it happened in session 1 around 9:22am. See Lewis's column at https://docs.google.com/spreadsheets/d/1iCcj2E4F4Nsns_HkDUnutCgEKWQc7kEu...
Comment #16
davidhernandezCan someone translate that doc? It looks like the person was editing the term reference field, (that is where you would see the setting to make Tags the default vocabulary) but there are no settings related to the autocomplete there.
Comment #17
davidhernandezThis should at least function.
Comment #18
amateescu commentedThat's the correct fix, thanks @davidhernandez!
Comment #19
cilefen commentedIs there any need for an automated test on this? I think not, but it is worth discussing.
Comment #20
amateescu commentedI also don't think that this specific issue is worth testing.
Comment #21
davidhernandezI don't think it needs a test.
Comment #23
webchickGreat!
Committed and pushed to 8.0.x. Another one bites the dust! :)