Skip to content

fix: question edit form #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2025
Merged

fix: question edit form #195

merged 1 commit into from
Jul 22, 2025

Conversation

janbritz
Copy link
Contributor

Falls man das Paket einer bereits gespeicherten QuestionPy-Frage wechseln und anschließend, ohne ein neues Paket auszuwählen, die Frage speichern will, wurde die Question-Edit-Form mit dem Paket angezeigt und nicht der Such-Container mit einer "Required"-Nachricht. Die bestehende Lösung hat hier durch Zufall funktioniert, da $question->qpy_package_hash immer auf '' gesetzt wurde - in $this->currentdata gibt es nie die Keys qpy_package_hash, qpy_package_file_hash und qpy_package_selected.
Das führte aber dazu, das beim Schmeißen von (Custom-)Validation-Errors, dieser Branch übersprungen wurde und das deshalb ein Request-Error angezeigt wurde.

@janbritz janbritz merged commit faa2683 into dev Jul 22, 2025
12 checks passed
@janbritz janbritz deleted the fix/question-edit-form branch July 22, 2025 10:15
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