Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Fix: ensure form_logo.png is included when present in media mapping #380

Merged

Conversation

eyelidlessness
Copy link
Contributor

Closes enketo/enketo#81.

I have verified this PR works with

  • Online form submission
  • Offline form submission
  • Saving offline drafts
  • Submitting offline drafts
  • Editing submissions
  • Form preview
  • None of the above

What else has been done to verify that this works as intended?

Tests for both presence of form_logo.png and escaping its base path.

Why is this the best possible solution? Were any other approaches considered?

This was a regression in enketo/enketo#401, which incorrectly restored the original escaping logic that was removed in enketo/enketo#477. That logic previously mutated the survey parameter, when restoring it I intended to return a new survey object but missed this particular one.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

I can not foresee any risk from this change that wasn't already a risk in enketo/enketo#401 or enketo/enketo#477.

Do we need any specific form for testing your changes? If so, please attach one.

See the attachment on enketo/enketo#81.

Copy link
Contributor

@lognaturel lognaturel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha, great!

@eyelidlessness eyelidlessness merged commit 55c74d0 into enketo:master Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

form_logo is not displaying in Enketo 3.0.4
2 participants