User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This change was created with the help of AI (Claude Code).
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.
Edit and save an existing weblink in the backend and on the frontend. Check Modified Date and Modified By.
Both values are updated (no change in behaviour visible, as the table also sets them).
Same, but only because of WeblinkTable::store().
None