Skip to content

Commit 203706b

Browse files
committed
Merge branch 'release/2.4.2'
2 parents 666be59 + a438fdf commit 203706b

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
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.2] - 2024-02-08
7+
### Changed
8+
- Only add billable and sequestered types if enable_uf_features is selected. Without this change, anyone who upgraded from <2.1.0 may have been unable to save new project owners (@ChemiKyle)
9+
10+
611
## [2.4.1] - 2024-02-06
712
### Changed
813
- Check for definition of USERID at start of buildOwnershipFieldset Prevents crash email from being sent to admins (@ChemiKyle, #59, #66)

ExternalModule.php

+10-7
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,19 @@ function redcap_entity_types() {
7979
'name' => 'Owner last name',
8080
'type' => 'text',
8181
],
82-
'billable' => [
82+
]
83+
];
84+
85+
if ($this->getSystemSetting('enable_uf_features')) {
86+
$types['project_ownership']['properties']['billable'] = [
8387
'name' => 'Billable',
84-
'type' => 'boolean',
85-
],
86-
'sequestered' => [
88+
'type' => 'boolean'
89+
];
90+
$types['project_ownership']['properties']['sequestered'] = [
8791
'name' => 'Sequestered',
8892
'type' => 'boolean',
89-
],
90-
]
91-
];
93+
];
94+
}
9295

9396
return $types;
9497
}

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.1
1+
2.4.2

0 commit comments

Comments
 (0)