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

JS crash on bad column in defaults #21

Open
nilesr opened this issue Jul 21, 2017 · 0 comments
Open

JS crash on bad column in defaults #21

nilesr opened this issue Jul 21, 2017 · 0 comments

Comments

@nilesr
Copy link

nilesr commented Jul 21, 2017

Software and hardware versions

survey 210c

Problem description

If you supply defaults to addRowWithSurvey, like {"some_column": "default value"} and the column "some_column" doesn't exist, undefined is passed in to fromSerializationToElementType, which throws an exception and causes the page to never load. We should check its value around like 382 in database.js and display a warning instead.

Steps to reproduce the problem

add a row with bad columns using addRowWithSurvey

Expected behavior

displays a warning

@wbrunette wbrunette transferred this issue from getodk/getodk Apr 9, 2019
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

No branches or pull requests

1 participant