Skip to content

fix: silence warning for answers to deleted questions - #3727

Open
Chartman123 wants to merge 1 commit into
mainfrom
fix/array_offset_null
Open

Chartman123 wants to merge 1 commit into
mainfrom
fix/array_offset_null

Conversation

@Chartman123

Copy link
Copy Markdown
Collaborator

This fixes #3713.

Handle cases where answers reference deleted questions by ensuring the question name is set to null instead of causing a warning.

…ll submissions

Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
@Chartman123 Chartman123 added bug Something isn't working php PHP related ticket labels Oct 5, 2026
@Chartman123
Chartman123 requested a review from Koc October 5, 2026 22:30
@Chartman123 Chartman123 added the 3. to review Waiting for reviews label Oct 5, 2026
@Chartman123
Chartman123 requested a review from samin-z October 5, 2026 22:30
@Chartman123 Chartman123 self-assigned this Oct 5, 2026

@Chartman123 Chartman123 left a comment •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/backport to stable5.4

@Chartman123 Chartman123 changed the title fix: Silence warning for answers to deleted questions fix: silence warning for answers to deleted questions Oct 5, 2026
@codecov

codecov Bot commented Oct 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
lib/Controller/ApiController.php 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working php PHP related ticket

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Trying to access array offset on value of type null when submissions for deleted questions exist

1 participant