Skip to content

Fix #4636 - pre-ticked repo submit agreement#4638

Merged
joemull merged 1 commit into
openlibhums:masterfrom
bibliotechy:cdl/fix-preselected-repository-start-form
Mar 6, 2025
Merged

Fix #4636 - pre-ticked repo submit agreement#4638
joemull merged 1 commit into
openlibhums:masterfrom
bibliotechy:cdl/fix-preselected-repository-start-form

Conversation

@bibliotechy

@bibliotechy bibliotechy commented Feb 28, 2025

Copy link
Copy Markdown
Contributor

When a user starts the process for a new repository submission, the box is always pre-ticked. The current code checks if the form model is False, but it is actually an instance of <class 'repository.models.Preprint'>. This updates the logic to check if the instance has an id, which it won't if not yest saved to the database, but it will have an id if it has been saved.

Fixes #4636

When a user starts the process for a new repository submission, the box is always pre-ticked. The current code checks if the form model is False, but it is actually an instance of `<class 'repository.models.Preprint'>`. This updates the logic to check if the instance has an id, which it won't is not yest saved to the databse, but it will have an id if is has been saved.

Fixes openlibhums#4636
@ajrbyers ajrbyers added this to the v1.8.0 Tracker milestone Mar 1, 2025
@ajrbyers ajrbyers assigned mauromsl and joemull and unassigned mauromsl Mar 1, 2025
@joemull joemull self-requested a review March 6, 2025 09:30
@joemull joemull merged commit 4160d25 into openlibhums:master Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Repository submission agreement auto-ticked, manager/admin can't edit metadata

4 participants