Skip to content

Commit e45f0af

Browse files
committed
Merge branch 'release/2.4.0'
2 parents 03e49f0 + d775801 commit e45f0af

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ All notable changes to the Project Ownership module will be documented in this f
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

55

6+
## [2.4.0] - 2023-10-20
7+
### Added
8+
- Show creation_time in ownership_list plugin page (Kyle Chesney)
9+
10+
611
## [2.3.0] - 2022-09-06
712
### Added
813
- Allow edit of billable and sequestered booleans on Control Center page (Kyle Chesney)

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.0
1+
2.4.0

classes/entity/list/ProjectOwnershipList.php

+8
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ function getFields() {
4242
],
4343
];
4444

45+
$fields['creation_time'] = [
46+
'name' => 'Project Creation time',
47+
'type' => 'text',
48+
'sql_field' => 'p.creation_time',
49+
];
50+
4551
$fields['pi'] = [
4652
'name' => 'PI name',
4753
'type' => 'text',
@@ -101,6 +107,8 @@ function buildTableRow($data, $entity) {
101107

102108
$row['last_activity'] = date_create($data['last_activity'])->format('m/d/Y');
103109

110+
$row['creation_time'] = date_create($data['creation_time'])->format('m/d/Y');
111+
104112
if (SUPER_USER || ACCOUNT_MANAGER || !empty($data['is_project_manager'])) {
105113
$url = APP_PATH_WEBROOT . 'ProjectSetup/index.php?pid=' . REDCap::escapeHtml($data['pid']) . '&open_project_edit_popup=1';
106114
$row['actions'] = RCView::a(['href' => $url, 'class' => 'btn btn-xs btn-success', 'target' => '_blank'], 'assign owner');

plugins/ownership_list.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
use ProjectOwnership\Entity\ProjectOwnershipList;
66

77
$list = new ProjectOwnershipList('project_ownership', $module);
8-
$list->setCols(['pid', 'fullname', 'email', 'type', 'pi', 'irb', 'last_activity'])
8+
$list->setCols(['pid', 'fullname', 'email', 'type', 'pi', 'irb', 'last_activity', 'creation_time'])
99
->render('global');

0 commit comments

Comments
 (0)