From 15206e285eb3e407d87e71f6bf45d5c94ddf0037 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Fri, 3 Mar 2023 13:05:33 -0500 Subject: [PATCH] Revert "LP#1999944: fix bug that can break drawing the folder tree for reports" This reverts commit c4302618ef36608916a61990a8841c1eee4d618a. --- Open-ILS/web/reports/oils_rpt_folders.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Open-ILS/web/reports/oils_rpt_folders.js b/Open-ILS/web/reports/oils_rpt_folders.js index 1f1a77dcdc..03c961d5b8 100644 --- a/Open-ILS/web/reports/oils_rpt_folders.js +++ b/Open-ILS/web/reports/oils_rpt_folders.js @@ -304,11 +304,7 @@ oilsRptFolderManager.prototype.drawFolders = function(type, folders) { id = node.treeId; if( folder.parent() ) { var pnode = this.findNode(type, folder.parent()); - if(!pnode){ - console.error("An error occurred retrieving "+type+" folder #"+folder.parent()); - continue; - } - pid = pnode.treeId; + pid = pnode.treeId; node.depth = pnode.depth + 1; } else { node.depth = 0; -- 2.11.0