mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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.
This commit is contained in:
parent
da7935e01c
commit
86753baaa1
@ -239,7 +239,8 @@
|
||||
|
||||
// set title (either from TreeTitle or from Title fields)
|
||||
// Treetitle has special HTML formatting to denote the status changes.
|
||||
if(title) node.find('.text').html(title);
|
||||
// only update immediate text element, we don't want to update all the nested ones
|
||||
if(title) node.find('.text:first').html(title);
|
||||
|
||||
// Collect flag classes and also apply to parent
|
||||
var statusFlags = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user