From 9cd0c7744d72708625e9ba873517ef6b05f9d792 Mon Sep 17 00:00:00 2001 From: Randy Posynick Date: Wed, 29 Nov 2017 14:01:56 -0800 Subject: [PATCH] MEM-624 Do not allow adding blank owner to a project. --- .../projects/client/controllers/project.client.controllers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/projects/client/controllers/project.client.controllers.js b/modules/projects/client/controllers/project.client.controllers.js index aaf68fb8c..3fe41fcc0 100755 --- a/modules/projects/client/controllers/project.client.controllers.js +++ b/modules/projects/client/controllers/project.client.controllers.js @@ -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;