diff --git a/.github/workflows/mysql.yml b/.github/workflows/mysql.yml index 722690cc6c..db04917d34 100644 --- a/.github/workflows/mysql.yml +++ b/.github/workflows/mysql.yml @@ -14,7 +14,7 @@ jobs: steps: # Checkout the repo - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 # Install Ruby and run bundler - uses: ruby/setup-ruby@v1 @@ -23,8 +23,9 @@ jobs: bundler-cache: true # Install Node - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: + node-version: '16.6.0' cache: 'yarn' # Copy all of the example configs over diff --git a/.github/workflows/postgres.yml b/.github/workflows/postgres.yml index 1a866315b3..6c04c3fc3e 100644 --- a/.github/workflows/postgres.yml +++ b/.github/workflows/postgres.yml @@ -30,7 +30,7 @@ jobs: steps: # Checkout the repo - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 # Install Ruby and run bundler - uses: ruby/setup-ruby@v1 @@ -39,8 +39,9 @@ jobs: bundler-cache: true # Install Node - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: + node-version: '16.6.0' cache: 'yarn' # Install the Postgres developer packages diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c5a065ac8..998b282ace 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Added popover for org profile page and added explanation for public plan ### Fixed +- Patched issue that was causing template visibility to default to organizationally visible after saving - Froze mail gem version [#3254](https://github.com/DMPRoadmap/roadmap/issues/3254) - Updated the CSV export so that it now includes research outputs - Updated sans-serif font used in PDF downloads to Roboto since Google API no longer offers Helvetica diff --git a/app/views/org_admin/templates/_form.html.erb b/app/views/org_admin/templates/_form.html.erb index 29c17a05a1..0a6ec2db62 100644 --- a/app/views/org_admin/templates/_form.html.erb +++ b/app/views/org_admin/templates/_form.html.erb @@ -26,6 +26,12 @@ <% end %> +<% else %> + <% + visibility = f.object.visibility + visibility = f.object.funder? ? 'publicly_visible' : 'organisationally_visible' if visibility.nil? + %> + <%= f.hidden_field :visibility, value: visibility %> <% end %>