Closed (won't fix)
Project:
Webform References
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Nov 2016 at 22:14 UTC
Updated:
8 May 2017 at 12:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
chandeepkhosa commentedHi Finau,
I had the same issue as you, so went on a hunt for the part of the module that causes this behaviour.
It is in the `webform_references.term.inc` file that I need to change line 575 from
`$matches[$row['name'] . " [id:" . $row['id'] . "]"] = check_plain($row['name']);`
to
`$matches[$row['name']] = check_plain($row['name']);`
I've created this as a patch below for me, you and other users to enjoy :)
I think a great next step would be for someone to assist us in making this a checkbox option 'include Term ID in selected autocomplete field' in the main module for the world to benefit from. I will try to find some time to do this.
Comment #3
chandeepkhosa commentedHere's the patch
Comment #5
chandeepkhosa commentedImproved patch, this time I remembered to clone the project repository and then create the patch instead of doing so in my client project :)
Tested on my local site successfully too.
Comment #6
sumitmadan commentedYou need to use some kind of jquery library to achieve this.
Comment #7
chandeepkhosa commentedThanks Sumit. It turns out my patch prevents the term reference from being saved, silly me :)