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

Site\Model\WeblinkModel::loadFormData() primes the category of a new weblink with $data->set('catid', …). set() is a CMSObject method. In Joomla 5 AdminModel::getItem() returns a CMSObject, but in Joomla 6 it returns a stdClass (ArrayHelper::toObject($properties)), so the call is a fatal "Call to undefined method stdClass::set()".

The property is now assigned directly, as in the administrator model.

Testing Instructions

Code review / on Joomla 6: call getForm() of the site WeblinkModel for a new item (weblink id 0) without form data in the session.

Expected result

The form is loaded with the category primed from the request or the list filter.

Actual result

Joomla 6: Error: Call to undefined method stdClass::set().

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment