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

Two layouts fetch the document through the global application (Factory::getApplication()->getDocument()) instead of the document that was set on the view:

  • administrator/.../tmpl/weblink/modal.php
  • components/.../tmpl/weblinks/default.php (its now unused Factory import is removed)

They now use $this->getDocument(), as the core layouts do since 4.4. This avoids the global Factory access and uses the document the view was rendered with.

Testing Instructions

  • Backend: open the association modal of a weblink (Associations tab → Edit).
  • Frontend: open the weblinks list view as a user with edit rights.

Expected result

Both render as before with their assets loaded.

Actual result

Same; the document is fetched from the global application.

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment