Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
27 Nov 2026

Pull Request for Issue # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

This change was created with the help of AI (Claude Code).

Summary of Changes

The edit URL of the modal_weblink field (used e.g. for the associations of a weblink) contains

document.getElementById("jform_..._id").value

with raw double quotes. The bootstrap modal layout outputs the URL as data-url="…" without escaping, so the first " ends the attribute and the rest of the URL becomes invalid attributes of the modal element. The core modal fields used " here, which the modal script converts back before evaluating the expression.

Additionally, the select callback passed 'Article' as item type to processModalSelect() (copy & paste); it now passes 'Weblink'.

Testing Instructions

  • Enable the Multilingual Associations plugin and create two content languages.
  • Create a weblink in one language, open the Associations tab of another weblink, select the first one, then click Edit on the association.
  • Check the HTML of the ModalEdit… element (browser dev tools).

Expected result

The edit modal opens the selected weblink, the data-url attribute contains the complete URL.

Actual result

The data-url attribute is cut off at document.getElementById(, followed by junk attributes.

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment