-
-
Notifications
You must be signed in to change notification settings - Fork 812
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SearchKit - Support all fields as tokens
Previously, only fields present in the SELECT clause could be tokens. Now the SearchDisplay::Run api will add any fields used as tokens to the SELECT automatically.
- Loading branch information
Showing
7 changed files
with
117 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 4 additions & 10 deletions
14
ext/search_kit/ang/crmSearchAdmin/crmSearchAdminTokenSelect.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
<div class="btn-group btn-group-xs"> | ||
<button type="button" class="btn btn-default-outline dropdown-toggle" ng-click="$ctrl.initTokens()" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
{{:: ts('Tokens') }} <span class="caret"></span> | ||
</button> | ||
<ul class="dropdown-menu dropdown-menu-right"> | ||
<li ng-repeat="(id, token) in $ctrl.tokens" > | ||
<a href ng-click="$ctrl.insertToken(id)">{{ token.label }}</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<input class="form-control crm-action-menu fa-code collapsible-optgroups" | ||
crm-ui-select="{placeholder: ts('Tokens'), data: $ctrl.getTokens, width: '12em'}" | ||
on-crm-ui-select="$ctrl.insertToken(selection)" | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters