Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "Retain page name case" and "Enable Git Web server" options get reset when "Application preferences" are saved #192

Closed
mattock opened this issue Jan 30, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@mattock
Copy link

mattock commented Jan 30, 2025

The "Application preferences" form touches parts of Otterwiki configuration it should not. How to reproduce:

  1. Go to Otterwiki Settings as an admin user
  2. Go to "Content and editing"
  3. Enable "Retain page name case" and/or "Enable Git Web server"
  4. Go to "Application preferences"
  5. Make any changes, e.g. edit "Site description"
  6. Go back to "Content and editing"
  7. Notice how "Retain page name case" and/or "Enable Git Web server" are now disabled

The culprit seems to be here:

The "handle_app_preferences" method should not include "retain_page_name_case" or "git_web_server" checkboxes, which are invisible anyways because they're not referred to in the matching template file:

@redimp redimp added the bug Something isn't working label Jan 30, 2025
@redimp
Copy link
Owner

redimp commented Jan 30, 2025

Confirmed. Will fix this and make a new release later today tomorrow. Thx @mattock for digging into it!

@redimp redimp closed this as completed in 5b76af3 Jan 31, 2025
@redimp
Copy link
Owner

redimp commented Jan 31, 2025

Fix released in v2.9.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants