Skip to content

Commit

Permalink
Adjust top filters for Provisioning History Records (CFM-280) (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
arlen authored Mar 30, 2026
1 parent c1858aa commit d53f97c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/src/Model/Table/GroupMembersTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class GroupMembersTable extends Table {
use \App\Lib\Traits\SearchFilterTrait;
use \App\Lib\Traits\TableMetaTrait;
use \App\Lib\Traits\ValidationTrait;
use \App\Lib\Traits\SearchFilterTrait;

/**
* Provide the default layout
Expand Down
27 changes: 26 additions & 1 deletion app/src/Model/Table/ProvisioningHistoryRecordsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ public function initialize(array $config): void {
'statuses' => [
'type' => 'enum',
'class' => 'ProvisioningStatusEnum'
]
],
'provisioningTargets' => [
'type' => 'select',
'model' => 'ProvisioningTargets'
],
]);

$this->setIndexContains(['ProvisioningTargets']);
Expand All @@ -99,6 +103,27 @@ public function initialize(array $config): void {
'index' => ['platformAdmin', 'coAdmin']
]
]);

$this->setFilterConfig([
'provisioning_target_id' => [
'type' => 'select',
'active' => true,
'model' => 'ProvisioningHistoryRecords.ProvisioningTargets',
'order' => 1
],
'subjectid' => [
'active' => false,
'type' => 'integer',
'model' => 'ProvisioningHistoryRecords',
'order' => 2
],
'subject_model' => [
'active' => false,
'type' => 'select',
'model' => 'ProvisioningHistoryRecords',
'order' => 3
],
]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/templates/element/filter/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<!-- XXX A view var is not accessible from inside the file we create/set it -->
<?php $this->set('vv_active_search_filters_count', 0) ?>

<!-- Search TextBoxes/DropDowns/e.t.c. -->
<!-- Search TextBoxes/DropDowns/etc. -->
<div id="top-filters-fields">
<!-- Single Search Fields -->
<div class="top-filters-fields-subgroups">
Expand Down

0 comments on commit d53f97c

Please sign in to comment.