Skip to content

Commit ada13ea

Browse files
committed
Merge branch 'main' into fix-byte-size
2 parents 8568644 + 21ce204 commit ada13ea

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.github/workflows/mysql.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
# Checkout the repo
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818

1919
# Install Ruby and run bundler
2020
- uses: ruby/setup-ruby@v1
@@ -23,8 +23,9 @@ jobs:
2323
bundler-cache: true
2424

2525
# Install Node
26-
- uses: actions/setup-node@v2
26+
- uses: actions/setup-node@v3
2727
with:
28+
node-version: '16.6.0'
2829
cache: 'yarn'
2930

3031
# Copy all of the example configs over

.github/workflows/postgres.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
# Checkout the repo
33-
- uses: actions/checkout@v2
33+
- uses: actions/checkout@v3
3434

3535
# Install Ruby and run bundler
3636
- uses: ruby/setup-ruby@v1
@@ -39,8 +39,9 @@ jobs:
3939
bundler-cache: true
4040

4141
# Install Node
42-
- uses: actions/setup-node@v2
42+
- uses: actions/setup-node@v3
4343
with:
44+
node-version: '16.6.0'
4445
cache: 'yarn'
4546

4647
# Install the Postgres developer packages

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
### Fixed
1010

1111
- Fixed an issue that was preventing uses from leaving the research output byte_size field blank
12+
- Patched issue that was causing template visibility to default to organizationally visible after saving
1213
- Froze mail gem version [#3254](https://github.com/DMPRoadmap/roadmap/issues/3254)
1314
- Updated the CSV export so that it now includes research outputs
1415
- Updated sans-serif font used in PDF downloads to Roboto since Google API no longer offers Helvetica

app/views/org_admin/templates/_form.html.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626
<% end %>
2727
</div>
2828
</div>
29+
<% else %>
30+
<%
31+
visibility = f.object.visibility
32+
visibility = f.object.funder? ? 'publicly_visible' : 'organisationally_visible' if visibility.nil?
33+
%>
34+
<%= f.hidden_field :visibility, value: visibility %>
2935
<% end %>
3036

3137
<div class="form-group col-xs-8">

0 commit comments

Comments
 (0)