Merge pull request #13870 from annando/channel-languages
Fix: Saving of channel languages
This commit is contained in:
commit
d9d42105d6
|
@ -134,7 +134,7 @@ class UserDefinedChannel extends \Friendica\BaseRepository
|
||||||
'max-size' => $Channel->maxSize,
|
'max-size' => $Channel->maxSize,
|
||||||
'full-text-search' => $Channel->fullTextSearch,
|
'full-text-search' => $Channel->fullTextSearch,
|
||||||
'media-type' => $Channel->mediaType,
|
'media-type' => $Channel->mediaType,
|
||||||
'languages' => serialize($Channel->languages),
|
'languages' => !empty($Channel->languages) ? serialize($Channel->languages) : null,
|
||||||
'publish' => $Channel->publish,
|
'publish' => $Channel->publish,
|
||||||
'valid' => $this->isValid($Channel->fullTextSearch),
|
'valid' => $this->isValid($Channel->fullTextSearch),
|
||||||
];
|
];
|
||||||
|
|
|
@ -101,7 +101,7 @@ class Channels extends BaseSettings
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!array_diff((array)$request['languages'][$id], $channel_languages)) {
|
if (!array_diff((array)$request['languages'][$id], $channel_languages) && (count((array)$request['languages'][$id]) == count($channel_languages))) {
|
||||||
$request['languages'][$id] = null;
|
$request['languages'][$id] = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user