Skip to content

Commit

Permalink
+ (CMS) Fixed an issue where the Rock tree control incorrectly remove…
Browse files Browse the repository at this point in the history
…s the leading "C" character from non-category identifiers. (Fixes #5340)
  • Loading branch information
jasonhendee committed Nov 22, 2023
1 parent b461068 commit 9408c45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion RockWeb/Scripts/Rock/Extensions/rockTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@
if (parentNode && parentNode.entityId) {
restUrl += parentNode.entityId;
} else {
var sanitizedId = parentId.toString().replace(self.options.categoryPrefix, '');
var sanitizedId = parentId.toString();
if (parentNode && parentNode.isCategory) {
sanitizedId = sanitizedId.replace(self.options.categoryPrefix, '');
}
restUrl += sanitizedId;
}

Expand Down

0 comments on commit 9408c45

Please sign in to comment.