Skip to content

Commit c6039ae

Browse files
committed
BUGFIX When updating the tree from EditForm, ensure we only change the
text of the tree node for the first .text element, instead of the nested ones.
1 parent 8ca961c commit c6039ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

admin/javascript/LeftAndMain.Tree.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@
239239

240240
// set title (either from TreeTitle or from Title fields)
241241
// Treetitle has special HTML formatting to denote the status changes.
242-
if(title) node.find('.text').html(title);
242+
// only update immediate text element, we don't want to update all the nested ones
243+
if(title) node.find('.text:first').html(title);
243244

244245
// Collect flag classes and also apply to parent
245246
var statusFlags = [];

0 commit comments

Comments
 (0)