projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SearchKit - permit selection of current user id for dynamic searches
[civicrm-core.git]
/
ext
/
search
/
ang
/
crmSearchActions
/
crmSearchInput
/
entityRef.html
diff --git
a/ext/search/ang/crmSearchActions/crmSearchInput/entityRef.html
b/ext/search/ang/crmSearchActions/crmSearchInput/entityRef.html
index b0050d7421eee098010424f2a2a63c925a102e9f..2ad7bc93a7bc5f226fc46e95836903fd7555d775 100644
(file)
--- a/
ext/search/ang/crmSearchActions/crmSearchInput/entityRef.html
+++ b/
ext/search/ang/crmSearchActions/crmSearchInput/entityRef.html
@@
-1,6
+1,6
@@
<div class="form-group" ng-if="!$ctrl.multi">
<div class="form-group" ng-if="!$ctrl.multi">
- <input class="form-control" ng-model="$ctrl.value" crm-entityref="{entity: $ctrl.field.fk_entity}">
+ <input class="form-control" ng-model="$ctrl.value" crm-entityref="{entity: $ctrl.field.fk_entity
, static: $ctrl.field.fk_entity === 'Contact' ? ['user_contact_id'] : []
}">
</div>
<div class="form-group" ng-if="$ctrl.multi">
</div>
<div class="form-group" ng-if="$ctrl.multi">
- <input class="form-control" ng-model="$ctrl.value" crm-entityref="{entity: $ctrl.field.fk_entity, select: {multiple: true}}" ng-list >
+ <input class="form-control" ng-model="$ctrl.value" crm-entityref="{entity: $ctrl.field.fk_entity, select: {multiple: true}
, static: $ctrl.field.fk_entity === 'Contact' ? ['user_contact_id'] : []
}" ng-list >
</div>
</div>