Skip to content

Commit

Permalink
Project form can be submitted without a PI now
Browse files Browse the repository at this point in the history
  • Loading branch information
xirdneh committed Mar 9, 2017
1 parent dde4100 commit fcc4f79
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,12 @@
$scope.ui.busy = true;
var projectData = {
title: $scope.form.title,
pi: $scope.form.pi.username,
awardNumber: $scope.form.awardNumber,
description: $scope.form.description
};
if ($scope.form.pi && $scope.form.pi.username){
projectData.pi = $scope.form.pi.username;
}
if ($scope.form.projectType && $scope.form.projectType.id !== 'undefined'){
projectData.projectType = $scope.form.projectType.id;
}
Expand Down

0 comments on commit fcc4f79

Please sign in to comment.