LP#1694577: exclude empheral search results folder from selector
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 23 Aug 2017 16:08:12 +0000 (12:08 -0400)
committerJason Etheridge <jason@EquinoxInitiative.org>
Wed, 23 Aug 2017 16:05:20 +0000 (12:05 -0400)
Otherwise, the folder selector for the move or clone template
actions includes a blank entry.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Open-ILS/web/reports/oils_rpt_folders.js

index 71c656d..03c961d 100644 (file)
@@ -396,6 +396,7 @@ function oilsRptBuildFolder(type, node, treeVar, rootName, action, shared, eachF
                var f = cache[c].folder;
 
                if( !shared && (f.owner().id() != USER.id()) ) continue;
+               if( f.id() == oilsRptSearchResultFolderId ) continue;
 
                if(f.parent()) {
                        /* find the parent's tree id so we can latch on to it */