Closed (fixed)
Project:
Reference value pair
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
2 Nov 2016 at 19:26 UTC
Updated:
12 Mar 2026 at 13:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sgp913 commentedThis is still an issue as of May 2017.
Could we either validate the form before submission to check that there is a reference value present or:
Would it be possible to treat the empty entity reference field as NULL if there is additional text present?
There seems to be some related work on this here: https://www.drupal.org/node/2834024
For my current case, I am using a custom formatter to override the label of the entity reference with the text, but in the case that there is no entity, I would still like to be able to input text here.
Comment #3
isaacrc commentedComment #4
isaacrc commentedComment #6
isaacrc commentedAdded validation when the EE is empty but the text field has a value. Fixed in this commit: https://git.drupalcode.org/project/reference_value_pair/-/commit/59c159b...
Comment #8
isaacrc commented