Skip to content

Commit

Permalink
Merge pull request #166 from RandyInVictoria/projects
Browse files Browse the repository at this point in the history
MEM-624 Do not allow adding blank owner to a project.
  • Loading branch information
Randy P authored Nov 29, 2017
2 parents 0513282 + 9cd0c77 commit 8346419
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ function controllerProjectEntry ($scope, $state, $stateParams, $modal, project,
}

$scope.addOwnershipOrganization = function (data) {
if (!data) return;

// Add this to the list if it's not already added.
var found = _.find($scope.project.ownershipData, function (org) {
return org.organization === data._id;
Expand Down

0 comments on commit 8346419

Please sign in to comment.