Skip to content

Instantly share code, notes, and snippets.

View jaapjansma's full-sized avatar

Jaap Jansma jaapjansma

  • Edeveloper / CiviCoop
  • Ede, The Netherlands
View GitHub Profile
function buildForm() {
// ...
$selectedIds = $this->getSelectedIds();
$this->assign_by_ref('selectedIds', $selectedIds);
// ...
}
public function getSelectedIds() {
$selectedIds = [];
@jaapjansma
jaapjansma / DefaultDataOutputTable.html
Created October 22, 2020 10:33
Fix for default data drop down
<div class="crm-block" ng-form="defaultDataOutput" crm-ui-id-scope>
<h3 class="widget-header">{{ts('Set defaults')}}</h3>
<table>
<thead>
<th>{{ts('Field')}}</th>
<th>{{ts('Value')}}</th>
</thead>
<tbody>
<tr ng-repeat="input in formProcessor.inputs | orderBy:'name'" ng-class-even="'crm-entity even-row even'" ng-class-odd="'crm-entity odd-row odd'">