Closed aaronskiba closed 4 months ago
1 Error | |
---|---|
:no_entry_sign: | Please include a CHANGELOG entry.
|
Generated by :no_entry_sign: Danger
Closing this because the behaviour of Template.visibility
will change with the upgrade to Rails 7. The changes within this PR have been adapted to the following PR: https://github.com/DMPRoadmap/roadmap/pull/3435.
Fixes #3419
Changes proposed in this PR:
app/views/org_admin/templates/_show.html.erb
if template.visibility == 'organisationally_visible'
, would always evaluate to false. This is becausetemplate.visibility
returns an integer value.app/views/org_admin/templates/_form.html.erb
f.object.visibility == 'organisationally_visible'
always evaluates to false. Thus, prior to this commit, the checkbox would always initially render as unchecked.{"organisationally_visible"=>0, "publicly_visible"=>1}
).