Skip to content

Commit 59113ee

Browse files
committed
Merge branch 'release/2.0.3'
2 parents 3245eee + 3aa2611 commit 59113ee

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

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

5+
## [2.0.3] - 2019-07-29
6+
### Added
7+
- Fix issue #38 (Kyle Chesney)
8+
9+
510
## [2.0.2] - 2019-02-01
611
### Added
712
- Including Exception class namespace. (Tiago Bember Simeao)

js/owner-fieldset.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,12 @@ $(document).ready(function() {
9090
ownershipFieldsInit = true;
9191

9292
if ($('#purpose').val() === '2' && !piFieldsInit) {
93-
$('[name="project_pi_' + key + '"]').val($(this).val());
93+
94+
urlp = new URLSearchParams(window.location.search);
95+
// only autopopulate pi fields if on project creation
96+
if ( urlp.get('action') == 'create') {
97+
$('[name="project_pi_' + key + '"]').val($(this).val());
98+
}
9499
}
95100
});
96101
});

0 commit comments

Comments
 (0)