LP#1999944: fix bug that can break drawing the folder tree for reports
authorLlewellyn Marshall <llewellyn.marshall@ncdcr.gov>
Fri, 9 Dec 2022 20:40:54 +0000 (15:40 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Tue, 21 Feb 2023 16:08:55 +0000 (11:08 -0500)
commitc9a280cb525c4bf434a1ab497ea90bcef4e88418
tree7d701d4d3b98e04b2686bc6ab4209da1bc3e6148
parent1efa3a96df5a321bb64c061c5da2f07d62c43b29
LP#1999944: fix bug that can break drawing the folder tree for reports

Specifically, skip drawfolders iteration if parent node cannot be
found and eport invalid parent folder in the browser console.

For example, if a user creates a template folder that is not shared
that has a child folder that _is_ shared, another user at the library
that the folder is shared with would see their report folders be
incompletely rendered.

Signed-off-by: Llewellyn Marshall <llewellyn.marshall@ncdcr.gov>
Signed-off-by: blake <blake@mobiusconsortium.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/web/reports/oils_rpt_folders.js