Multiple Linkit fields are replicating the same url link

Created on 26 April 2024, 2 months ago
Updated 16 May 2024, about 1 month ago

Problem/motivation

If using more than 1 Linkit field on a node. You create a node, add 2 unique links. Then when you edit the node, the 2 Linkit fields will have the same url link. Both link fields contain the same link.

Steps to reproduce

  1. Install a fresh Drupal site using core 10.2.5 or Drupal core 10.1.8
  2. Install Linkit Linkit 6.1.3
  3. Add 2 different link fields to Article content type, disable the link text option
  4. Use the Linkit widget in form display for both link fields
  5. Create 2 nodes, test1 and test2.
  6. Create another node, add a link to test1 and test2. Save the node.
  7. Next, edit the node and you will see both link fields contain the same link?

Update: I had the link field (link text) Disabled. This caused the problem
If you use (link text) Optional the problem is fixed.

Proposed resolution

This module uses Gitlab CI for automated testing of proposed code changes. To contribute code changes, create a merge request. Patch files will not trigger automated testing and are not sufficient for review.
🐛 Bug report
Status

Active

Version

7.0

Component

Code

Created by

🇺🇸United States leisurman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024