Skip to content

Adjust top filters for Provisioning History Records (CFM-280) #380

Merged
merged 1 commit into from
Mar 30, 2026
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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