diff --git a/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayToggleCollapse.component.js b/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayToggleCollapse.component.js index 50cf5faa0d48..369b8e1857ac 100644 --- a/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayToggleCollapse.component.js +++ b/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayToggleCollapse.component.js @@ -19,6 +19,7 @@ } else { row.collapsed = false; } + // Button is irrelevant without any descendents; hide it without breaking the layout. if (!row.data._descendents) { $element.css('visibility', 'hidden'); } @@ -51,7 +52,7 @@ // Hiding rows is simple, just hide all of them, but when un-hiding we need to skip over // the children of collapsed elements. if (!hide && ctrl.rows[i].collapsed) { - i += ctrl.rows[i]._descendents; + i += ctrl.rows[i].data._descendents; } } }; diff --git a/schema/Financial/FinancialAccount.entityType.php b/schema/Financial/FinancialAccount.entityType.php index 9c41c4fac3f7..a902adbda1ca 100644 --- a/schema/Financial/FinancialAccount.entityType.php +++ b/schema/Financial/FinancialAccount.entityType.php @@ -10,7 +10,7 @@ 'description' => ts('Financial Accounts'), 'log' => TRUE, 'add' => '3.2', - 'label_field' => 'name', + 'label_field' => 'label', ], 'getPaths' => fn() => [ 'add' => 'civicrm/admin/financial/financialAccount/edit?action=add&reset=1', diff --git a/schema/Financial/FinancialType.entityType.php b/schema/Financial/FinancialType.entityType.php index 049232d9b4a9..c2027d862791 100644 --- a/schema/Financial/FinancialType.entityType.php +++ b/schema/Financial/FinancialType.entityType.php @@ -10,7 +10,7 @@ 'description' => ts('Formerly civicrm_contribution_type merged into this table in 4.3'), 'log' => TRUE, 'add' => '1.3', - 'label_field' => 'name', + 'label_field' => 'label', ], 'getPaths' => fn() => [ 'add' => 'civicrm/admin/financial/financialType/edit?action=add&reset=1',