mirror of
https://github.com/humhub/humhub.git
synced 2025-01-29 12:28:06 +01:00
Fix: MultiSelect loads wrong options (#6970)
* Fix: MultiSelect loads wrong options * Add PR ID
This commit is contained in:
parent
89c6517e4d
commit
2f24ad5dd0
@ -9,11 +9,12 @@ HumHub Changelog
|
||||
- Enh #6952: Improve container title encoding in header
|
||||
- Fix #6954: Search out of viewport on mobile
|
||||
- Enh #6950: Ability to reset some notification settings to all users without resetting "Like" notifications by email
|
||||
- Fix #6954: Search out of viewport on mobile
|
||||
- Fix #6954: Search out of viewport on mobile
|
||||
- Fix #6962: People filter - Hide follower options if Following is disabled in the User module
|
||||
- Fix #6961: Fix people dropdown filter without defined keys
|
||||
- Fix #6967: Use same order for meta searching that is used for content page searching by default
|
||||
- Enh #6968: Meta search: open external links in new window
|
||||
- Fix #6970: MultiSelect loads wrong options (since #6768 in 1.16.0-beta.1)
|
||||
|
||||
1.16.0-beta.2 (April 9, 2024)
|
||||
-----------------------------
|
||||
@ -106,4 +107,4 @@ HumHub Changelog
|
||||
- Enh #6147: New space service `MemberListService`
|
||||
- Enh #6487: Remove general setting "Server Timezone"
|
||||
- Enh #6552: Allow module initializing on each loading
|
||||
- Fix #6768 MultiSelect when empty selection is given
|
||||
- Fix #6768: MultiSelect when empty selection is given
|
||||
|
@ -8,8 +8,6 @@
|
||||
|
||||
namespace humhub\modules\ui\form\widgets;
|
||||
|
||||
use yii\helpers\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Multiselect
|
||||
*
|
||||
@ -67,7 +65,7 @@ class MultiSelect extends BasePicker
|
||||
continue;
|
||||
}
|
||||
|
||||
$result[$key] = $this->buildItemOption([$key => $value], ArrayHelper::keyExists($key, $this->selection));
|
||||
$result[$key] = $this->buildItemOption([$key => $value], in_array($key, $this->selection, true));
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user