mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-02 13:50:36 +01:00
fix: #9114, fix client side groups update for memberPostCids
This commit is contained in:
@@ -190,6 +190,11 @@ define('forum/groups/details', [
|
||||
if (settingsFormEl.length) {
|
||||
var settings = settingsFormEl.serializeObject();
|
||||
|
||||
// serializeObject doesnt return array for multi selects if only one item is selected
|
||||
if (!Array.isArray(settings.memberPostCids)) {
|
||||
settings.memberPostCids = $('#memberPostCids').val();
|
||||
}
|
||||
|
||||
// Fix checkbox values
|
||||
checkboxes.each(function (idx, inputEl) {
|
||||
inputEl = $(inputEl);
|
||||
|
||||
Reference in New Issue
Block a user