Skip to content

Commit

Permalink
NMS-16536, initial commit with fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
smunir-onms committed Oct 8, 2024
1 parent 6ffeee8 commit 8b31f8b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,12 @@ private boolean handleCategoryChanges(final OnmsNode dbNode) {
}
}

// If any categories were removed or new ones are to be added, reset the cache
if (changed || !categories.isEmpty()) {
// attributes changed, resetting cache
m_categoryCache.set(loadCategoryMap());
}

// the remainder of requisitioned categories get added
for (final String cat : categories) {
m_categoriesAdded.add(cat);
Expand Down

0 comments on commit 8b31f8b

Please sign in to comment.