Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b54da5c64c |
@@ -4,6 +4,11 @@ All notable changes to this project are documented here. Format loosely
|
|||||||
follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions
|
follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions
|
||||||
correspond to git tags (`vX.Y.Z`) and `nodejs/package.json`'s `version`.
|
correspond to git tags (`vX.Y.Z`) and `nodejs/package.json`'s `version`.
|
||||||
|
|
||||||
|
## [1.8.1] - 2026-07-28
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- **The resource modal's "Associated LDAP Groups" autocomplete went empty after the first Add/Edit** — `loadLdapGroups()`'s fetch-once cache guard (`if (ldapGroupsCache) return;`) also skipped repopulating the `<datalist>` on every call after the first, but the modal body (including that `<datalist>`) is rebuilt fresh and empty on every `app.modal.open()`. Now the fetch is still cached, but the datalist is always repopulated.
|
||||||
|
|
||||||
## [1.8.0] - 2026-07-28
|
## [1.8.0] - 2026-07-28
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "t42-sso-manager",
|
"name": "t42-sso-manager",
|
||||||
"version": "1.8.0",
|
"version": "1.8.1",
|
||||||
"description": "A very simple LDAP management and SSO system",
|
"description": "A very simple LDAP management and SSO system",
|
||||||
"author": [
|
"author": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -563,10 +563,15 @@
|
|||||||
|
|
||||||
var ldapGroupsCache = null;
|
var ldapGroupsCache = null;
|
||||||
async function loadLdapGroups() {
|
async function loadLdapGroups() {
|
||||||
if (ldapGroupsCache) return;
|
|
||||||
try {
|
try {
|
||||||
const res = await app.api.get('group');
|
if (!ldapGroupsCache) {
|
||||||
ldapGroupsCache = res.results;
|
const res = await app.api.get('group');
|
||||||
|
ldapGroupsCache = res.results;
|
||||||
|
}
|
||||||
|
// Re-populate every call, not just the first -- #ldap-groups-datalist
|
||||||
|
// is rebuilt fresh (empty) on every app.modal.open(), so returning
|
||||||
|
// early here on a cache hit left the second and later modal opens
|
||||||
|
// with no autocomplete options at all.
|
||||||
const $datalist = $('#ldap-groups-datalist');
|
const $datalist = $('#ldap-groups-datalist');
|
||||||
$datalist.empty();
|
$datalist.empty();
|
||||||
for (const cn of ldapGroupsCache) {
|
for (const cn of ldapGroupsCache) {
|
||||||
|
|||||||
Reference in New Issue
Block a user