User tests: Successful: Unsuccessful:
When LanguageFilter plugin is enabled, the data object containing the form data (specified at http://docs.joomla.org/Plugin/Events/Content#onContentPrepareForm) gets converted to an array containing the data for some components, which results in inability to manipulate it as it isn't passed by reference.
This PR removes conversion to array and restores passing the data as an object, which seems to be the correct way.
To test, just make sure that multilingual assotiations/content still works fine when you are editing Content/Categories/Contacts/Newsfeeds
No, I really mean language filter. The problem is in this (snipet from article model in com_content, I added comments inline):
// check whether language filter is enabled
$assoc = JLanguageAssociations::isEnabled();
if ($assoc)
{
$languages = JLanguageHelper::getLanguages('lang_code');
// this conversion wouldn't happen is $assoc was false, meaning if language filter wasn't enabled
// force to array (perhaps move to $this->loadFormData())
$data = (array) $data;
Title |
|
Title |
|
Moved tracker to RTC as we have 2 successful tests.
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-08-09 17:52:50 |
Now do you actually mean language filter or language code? Because language filter doesn't even seem to have an onContentPrepareForm event and language code doesn't ever touch the data attribute. I can see there's some inconsistency - but not quite clear how it makes a difference in either of these plugins