Skip to content
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

Error when deleting question in survey with dependencies #427

Closed
Laur0r opened this issue Oct 4, 2022 · 1 comment
Closed

Error when deleting question in survey with dependencies #427

Laur0r opened this issue Oct 4, 2022 · 1 comment

Comments

@Laur0r
Copy link

Laur0r commented Oct 4, 2022

When deleting a question in a survey that has dependent questions, the following error message is displayed: count(): Argument #1 ($value) must be of type Countable|array, stdClass given.

This stems from line 190 in questions.php where the argument of count() $haschildren is a class and not an array. Instead of using count(), an alternative would be to use empty for the check in line 190.
Questionnaire_error

@mchurchward mchurchward linked a pull request Jan 3, 2023 that will close this issue
@mchurchward
Copy link
Contributor

I believe this is fixed in the above commit.

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 a pull request may close this issue.

2 participants