Add count display for account type tabs
- Add translations strings to AccountTypeTabs
This commit is contained in:
parent
651849b18e
commit
4dad98fa04
2 changed files with 26 additions and 11 deletions
|
|
@ -77,7 +77,11 @@ AGAINST (:query IN BOOLEAN MODE)";
|
|||
|
||||
$values = ['query' => $query];
|
||||
|
||||
|
||||
$account_type = $args['account_type'] ?? '';
|
||||
|
||||
$accountTypeTabs = $this->accountTypeTabs->render('search', $account_type, $sql_where, $values, ['q' => $originalQuery, 'field' => $field]);
|
||||
|
||||
if ($account_type) {
|
||||
$sql_where .= '
|
||||
AND `account_type` = :account_type';
|
||||
|
|
@ -93,7 +97,7 @@ AND `account_type` = :account_type';
|
|||
'field' => $field,
|
||||
'fieldName' => $fieldName,
|
||||
'count' => $count,
|
||||
'accountTypeTabs' => $this->accountTypeTabs->render('search', $account_type, ['q' => $originalQuery, 'field' => $field]),
|
||||
'accountTypeTabs' => $accountTypeTabs,
|
||||
'profiles' => $profiles,
|
||||
'pager_full' => $pager->renderFull($count),
|
||||
'pager_minimal' => $pager->renderMinimal($count),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue