User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This change was created with the help of AI (Claude Code).
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.
Code review / on Joomla 6: call getForm() of the site WeblinkModel for a new item (weblink id 0) without form data in the session.
The form is loaded with the category primed from the request or the list filter.
Joomla 6: Error: Call to undefined method stdClass::set().
None