Skip to content

Commit

Permalink
Controller: Add changed_at as sortby column
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed May 3, 2024
1 parent 062302e commit 6a29ffd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions application/controllers/ChannelsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ public function indexAction()
$sortControl = $this->createSortControl(
$channels,
[
'name' => t('Name'),
'type' => t('Type')
'name' => t('Name'),
'type' => t('Type'),
'changed_at' => t('Changed At')
]
);

Expand Down
3 changes: 2 additions & 1 deletion application/controllers/ContactsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public function indexAction()
$sortControl = $this->createSortControl(
$contacts,
[
'full_name' => t('Full Name'),
'full_name' => t('Full Name'),
'changed_at' => t('Changed At')
]
);

Expand Down
3 changes: 2 additions & 1 deletion application/controllers/EventRulesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public function indexAction(): void
$sortControl = $this->createSortControl(
$eventRules,
[
'name' => t('Name'),
'name' => t('Name'),
'changed_at' => t('Changed At')
]
);

Expand Down
5 changes: 3 additions & 2 deletions application/controllers/SourcesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ public function indexAction(): void
$sortControl = $this->createSortControl(
$sources,
[
'name' => t('Name'),
'type' => t('Type')
'name' => t('Name'),
'type' => t('Type'),
'changed_at' => t('Changed At')
]
);

Expand Down

0 comments on commit 6a29ffd

Please sign in to comment.