Skip to content

Commit

Permalink
Merge pull request #137 from marklise/master
Browse files Browse the repository at this point in the history
MEM-560: Fixing issue with defaulting to 100%.
  • Loading branch information
marklise authored Oct 26, 2017
2 parents 355fa9f + bf53bed commit 75bb454
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function controllerProjectEntry ($scope, $state, $stateParams, $modal, project,
// We already added this to the list, error.
AlertService.error('The selected organization has been added already.');
} else {
$scope.project.ownershipData.push({organization: data, sharePercent: 1});
$scope.project.ownershipData.push({organization: data, sharePercent: 100});
}
};

Expand Down
2 changes: 1 addition & 1 deletion modules/projects/server/models/project.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ module.exports = require ('../../../core/server/controllers/core.schema.controll
ownershipData :[
{
_id : false,
sharePercent : { type: Number, default: 0 },
sharePercent : { type: Number, default: 100 },
organization : { type:'ObjectId', ref:'Organization', index:true, default:null
}
}],
Expand Down

0 comments on commit 75bb454

Please sign in to comment.