Fix edition weight validation blocking small existing values less than 0.01 #11705
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this change does
This pull request fixes a case where editing an existing edition can fail silently due to client-side form validation.
Some editions already have very small weight values stored, for example
0.001. When an editor tries to save any change on such an edition, the browser blocks the form submission because the weight input enforces a minimum value of0.01. Since this validation happens at the browser level and no error message is shown, the save action appears to do nothing.Why this happens
The edition edit form uses an HTML
min="0.01"constraint on the weight input. This constraint does not match the existing data, which already includes values smaller than0.01. As a result, valid stored data becomes impossible to edit.What was changed
The minimum value on the edition weight input has been lowered to
0. This aligns the client-side validation with the data that already exists in the system and ensures that edits to existing editions are not blocked by the browser.This change is intentionally limited to the frontend validation. It does not alter backend behavior or data storage rules.
Result
Existing editions with small weight values can now be edited and saved normally. The silent failure during form submission is eliminated.
Fixes #11699