Skip to content
Snippets Groups Projects
Commit 4077ebd3 authored by Tim Steiner's avatar Tim Steiner
Browse files

Change majority to be > 50%, not >= 50%

parent 5f1cc490
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ class Requests_ApprovalActionVoteModel extends Requests_ApprovalActionQueueModel
if ($this->_data['requiredVotes'] == 'plurality') {
$request->setState($winner);
} else if ($this->_data['requiredVotes'] == 'majority' && ($mostVotes / $voteCount) >= 0.5) {
} else if ($this->_data['requiredVotes'] == 'majority' && ($mostVotes / $voteCount) > 0.5) {
$request->setState($winner);
} else if ($this->_data['requiredVotes'] == 'unanimity' && ($mostVotes / $voteCount) == 1.0) {
$request->setState($winner);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment