Do not display expander on record without children
issue8518 review287811003
This commit is contained in:
1 parent
4aecad26e7
commit
ac73f7932c
1 file changed
+4
-1
+4
-1
@@ -1058,8 +1058,11 @@
|
||||
this.set_selection(Sao.common.contains(selected, row_id_path));
|
||||
if (this.children_field) {
|
||||
this.record.load(this.children_field).done(function() {
|
||||
var children = this.record.field_get_client(
|
||||
this.children_field);
|
||||
if (this.is_expanded() ||
|
||||
Sao.common.contains(expanded, row_id_path)) {
|
||||
Sao.common.contains(expanded, row_id_path) &&
|
||||
!jQuery.isEmptyObject(children)) {
|
||||
this.expander.css('visibility', 'visible');
|
||||
this.tree.expanded[this.path] = this;
|
||||
this.expand_children(selected, expanded);
|
||||
|
||||
Reference in new issue
Block a user