mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02: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
8ca961c2b1
commit
c6039ae8d1
@ -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…
Reference in New Issue
Block a user