Skip to content

Conversation

@bitWise72
Copy link

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 of 0.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 than 0.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

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.

Edition weights which are too small cause edits to silently fail

1 participant