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

In prepareTable() of the administrator and the site WeblinkModel the else branch that sets modified and modified_by belongs to the "ordering empty" check inside if (empty($table->id)). As a result the values are only set for new weblinks that already have an ordering, and never for existing weblinks, which is the case they are meant for (compare core ContactModel::prepareTable()).

At the moment WeblinkTable::store() sets the modified date and user as well, which hides the problem, but the model logic is wrong.

The else is moved to the outer if. In the administrator model the no-op (int) cast in (int) $table->version++; is removed.

Testing Instructions

Edit and save an existing weblink in the backend and on the frontend. Check Modified Date and Modified By.

Expected result

Both values are updated (no change in behaviour visible, as the table also sets them).

Actual result

Same, but only because of WeblinkTable::store().

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment