backdrop-contrib / reference

Defines a field to allow Backdrop entities to reference each other.
GNU General Public License v2.0
4 stars 6 forks source link

Validation error when node with long title referenced #44

Closed jenlampton closed 5 years ago

jenlampton commented 5 years ago

When I reference a node on my site that has the title Joshua C. Rosenthal - St. Mary's College of California - Associate Director of Admissions, Graduate Business Programs - The Online MBA Report Interview I see the error:

Related Articles cannot be longer than 128 characters but is currently 160 characters long.

The validation this field should at least match the allowed length of the title field + the number of characters added for the Node ID to prevent this from happening. That would be 255 plus 5 for a 1-digit node id. To accommodate large node IDs, this PR adds 15, for a 10-digit node ID.

PR: https://github.com/backdrop-contrib/reference/pull/45