Skip to content

Fix position validation error when editing stratified sortitions with imported participants#23

Merged
RubenBlazquez merged 3 commits intomainfrom
fix/strata_position_validation
Mar 9, 2026
Merged

Fix position validation error when editing stratified sortitions with imported participants#23
RubenBlazquez merged 3 commits intomainfrom
fix/strata_position_validation

Conversation

@RubenBlazquez
Copy link
Collaborator

Strata/substrata created before the position migration have NULL positions in the DB. The form always sends position 0+, causing a false nil != 0 mismatch that blocks any edit (including allowed ones like max_quota_percentage). This fix skips the position immutability check when the stored position is NULL.

Captura desde 2026-03-05 11-15-18

@RubenBlazquez RubenBlazquez self-assigned this Mar 5, 2026
@RubenBlazquez RubenBlazquez merged commit b10b6f9 into main Mar 9, 2026
2 checks passed
@RubenBlazquez RubenBlazquez deleted the fix/strata_position_validation branch March 9, 2026 12:21
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.

2 participants