Skip to content

Commit 214a0c9

Browse files
authored
Merge pull request #3172 from DMPRoadmap/bug_roadmap_3086-Org_visibility_plan_public_DMPs_only_appear_if_100_per_filled
Roadmap bug 3086 - The share feature for Org plan visibility was broken:
2 parents 1d09e1d + 7031205 commit 214a0c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/phase.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def num_answers_not_removed(plan)
139139
end
140140

141141
def visibility_allowed?(plan)
142-
value = Rational(num_answered_questions(plan), plan.num_questions) * 100
142+
value = Rational(num_answered_questions(plan), plan.num_questions).to_f * 100
143143
value >= Rails.configuration.x.plans.default_percentage_answered.to_f
144144
end
145145
end

0 commit comments

Comments
 (0)