fix(sessao): preserva votos e mantém edição após erro na votação nominal (#2985)#3800
Open
TenSoja wants to merge 2 commits intointerlegis:3.1.xfrom
Open
fix(sessao): preserva votos e mantém edição após erro na votação nominal (#2985)#3800TenSoja wants to merge 2 commits intointerlegis:3.1.xfrom
TenSoja wants to merge 2 commits intointerlegis:3.1.xfrom
Conversation
…nal (interlegis#2985) - Reconstrói 'parlamentares' a partir dos votos enviados no POST em form_invalid da VotacaoEmBlocoNominalView, preservando as marcações quando a validação falhar (ex.: resultado da votação ausente). - Adiciona flag 'votos_from_post' no contexto e ajusta o template para não desabilitar o select/gerar input hidden quando os votos vierem do POST, permitindo correção antes de reenviar. closes interlegis#2985
6a6f002 to
10691ac
Compare
f92c461 to
3faba84
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
fix(sessao): preserva votos e mantém edição após erro na votação nominal
form_invaliddaVotacaoEmBlocoNominalView, preservando as marcações quando a validação falhar (ex.: “Resultado da Votação” ausente).votos_from_postno contexto e ajusta o templatevotacao_nominal_bloco.htmlpara não desabilitar o select nem gerar o input hidden quando os votos vierem do POST, permitindo correção antes de reenviar.Closes #2985
Motivação e Contexto
Ao submeter a votação nominal sem selecionar “Resultado da Votação”, a tela retornava com erro e as marcações de votos eram perdidas, obrigando reentrada. A correção preserva as seleções do usuário e mantém a edição habilitada especificamente neste fluxo de erro, sem alterar o comportamento quando os votos já estão salvos.
Como foi testado
Tipo de mudança
Checklist