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

An exception appears on an attempt to obtain a list of survey questions #6666

Closed
JaneSjs opened this issue Aug 7, 2023 · 0 comments · Fixed by #6668
Closed

An exception appears on an attempt to obtain a list of survey questions #6666

JaneSjs opened this issue Aug 7, 2023 · 0 comments · Fixed by #6668
Assignees
Labels
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Aug 7, 2023

A sample survey can be taken from the following support thread: T14151 - Copy choices from a panel inside a dynamic panel
https://surveyjs.answerdesk.io/internal/ticket/details/T14151

View Demo

The survey.getAllQuestions(false, true, true) function fails with the following exception:

survey.core.js:55888 Uncaught TypeError: q.getNestedQuestions is not a function
    at eval (survey.core.js:55888:15)
    at Array.forEach (<anonymous>)
    at ./src/survey.ts.SurveyModel.getAllQuestions (survey.core.js:55886:13)
    at eval (eval at ngOnInit (survey.component.ts:1:1), <anonymous>:1:8)
    at SurveyComponent.ngOnInit (survey.component.ts:19:1)
    at callHook (core.mjs:2495:22)
    at callHooks (core.mjs:2464:17)
    at executeInitAndCheckHooks (core.mjs:2415:9)
    at refreshView (core.mjs:12003:21)
    at refreshComponent (core.mjs:13084:13)
    at refreshChildComponents (core.mjs:11778:9)
    at refreshView (core.mjs:12038:13)
    at renderComponentOrTemplate (core.mjs:12105:9)
    at tickRootContext (core.mjs:13260:13)
    at detectChangesInRootView (core.mjs:13286:5)
    at RootViewRef.detectChanges (core.mjs:13803:9)
    at ApplicationRef.tick (core.mjs:27478:22)
    at ApplicationRef._loadComponent (core.mjs:27516:14)
    at ApplicationRef.bootstrap (core.mjs:27453:14)
    at eval (core.mjs:27104:64)
    at Array.forEach (<anonymous>)
    at PlatformRef._moduleDoBootstrap (core.mjs:27104:44)
    at eval (core.mjs:27074:26)
    at _ZoneDelegate.invoke (zone.js:372:26)
    at Object.onInvoke (core.mjs:26380:33)
    at _ZoneDelegate.invoke (zone.js:371:52)
    at Zone.run (zone.js:134:43)
    at eval (zone.js:1275:36)
    at _ZoneDelegate.invokeTask (zone.js:406:31)
    at Object.onInvokeTask (core.mjs:26367:33)
    at _ZoneDelegate.invokeTask (zone.js:405:60)
    at Zone.runTask (zone.js:178:47)
    at drainMicroTaskQueue (zone.js:585:35)
@JaneSjs JaneSjs added the bug label Aug 7, 2023
andrewtelnov added a commit that referenced this issue Aug 7, 2023
…ing to obtain a list of survey questions (survey.getAllQuestions(false, true, true)) fix #6666
tsv2013 pushed a commit that referenced this issue Aug 8, 2023
…ing to obtain a list of survey questions (survey.getAllQuestions(false, true, true)) fix #6666 (#6668)
@RomanTsukanov RomanTsukanov changed the title The q.getNestedQuestions is not a function exception appears when trying to obtain a list of survey questions (survey.getAllQuestions(false, true, true)) An exception appears on an attempt to obtain a list of survey questions Aug 9, 2023
@OlgaLarina OlgaLarina added this to the v1.9.102 milestone Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants