Closed (fixed)
Project:
Unique Field AJAX
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2019 at 10:29 UTC
Updated:
2 Jul 2021 at 08:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
rp7 commentedPatch attached allows you to enter a placer %link in the error message configuration screen. When the error message is displayed, this placeholder will be replaced by a link to the entity.
If the user has no access to this entity, "Unknown" is displayed instead.
Comment #3
rp7 commentedFor anyone interested in using patch provided in #2 in combination with patch #2 provided in #3003948: Add support for link field: patch attached.
Comment #4
skymen commented@rp7 Thanks for this functionality!

I have tested patch 3. It works good but the code does search only the first node and displays a link to it.
I think it would be more convenient for many users to see a complete list of links to materials with same field value. And to make the form more accurate with a large number of links we can add to the field settings limit on the number of displayed nodes.
Something like that:
Comment #5
skymen commentedComment #6
glottus commentedThis is an adaptation of the patch in #2 that applies against the newer 2.0.1 version of unique_field_ajax. I can open a separate issue for that version instead, if preferred.
Comment #8
3liThanks all for the work, I have merged in #6 and done some refactoring so that ajax and form submit both have their messages going through one method.
If you could review / test it is on the 2.x branch.
Thanks
Comment #9
3liComment #11
3li