Skip to content

Commit

Permalink
Merge branch 'NES-991' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
caco13 committed Oct 25, 2019
2 parents 0d55386 + ad0d125 commit 8d7ecdb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ <h4>{% trans "Filters selection" %}</h4>
<div class="col-xs-12 col-xs-12">
<p><strong>{% trans "License" %}</strong></p>
<input type="radio" name="license" id="license1" value="0" checked>
<label for="license1">Copyright</label><br>
<label for="license1">Creative Commons</label><br>
<input type="radio" name="license" id="license2" value="1">
<label for="license2">Creative Commons</label>
<label for="license2">Copyright</label>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ <h4>{% trans "General Information" %}</h4>
</div>
<div class="col-xs-6 col-sm-6">
<p><strong>{% trans "License" %}</strong></p>
<input type="radio" name="license" id="license0" value="0" checked>
<label for="license0">Creative Commons</label><br>
<input type="radio" name="license" id="license1" value="1">
<label for="license1">Copyright</label>
<input type="radio" name="license" id="license1" value="0" checked>
<label for="license1">Creative Commons</label><br>
<input type="radio" name="license" id="license2" value="1">
<label for="license2">Copyright</label>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion patientregistrationsystem/qdc/export/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3655,7 +3655,7 @@ def test_export_per_participant_adds_questionnaires_contributors_to_datapackage_

@override_settings(MEDIA_ROOT=TEMP_MEDIA_ROOT)
@patch('survey.abc_search_engine.Server')
def test_export_per_participant_displays_license_options_in_form(self, mockServer):
def test_export_per_participant_displays_license_options_in_form_with_default_to_creative_commons(self, mockServer):
survey = create_survey(LIMESURVEY_SURVEY_ID_1)
UtilTests.create_response_survey(self.user, self.patient, survey, token_id=1)
set_mocks8(mockServer)
Expand Down

0 comments on commit 8d7ecdb

Please sign in to comment.