Octopoos / SEBLOD

Build high-end websites with SEBLOD®, a CCK for Joomla!

Home Page:https://www.seblod.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Copy/Translate on Free Object in 4.1 breaks JForm Associations

Giuse69 opened this issue · comments

After upgrade from 4.0.6 to 4.1, when I try to edit in backend any object of a custom type that uses the JFormAssociation field, I get a critical error
"Cannot use object of type stdClass as array". Stack trace: #0 [ROOT]/libraries/cck/_/cck.php(34): plgCCK_Storage_LocationJoomla_Article_Helper::getAssociationsForm()

Troubleshooting the problem, it appears as the new feature Copy/Translate feature commited with 90bbc1e has broken the usage of the AssociationField at least with Seblod custom types.
Infact reverting line 84/85
$form = ....array( $id, $name, $field, $config )
to the previous version
$form = .... array( $id, $name, $config )
everything works again.