SalesforceLabs / survey-force

88 stars 63 forks source link

Error occured when renaming Free Text question type. #44

Closed eliver closed 4 years ago

eliver commented 4 years ago

Error pops up when trying to editting a Free Text Question.

I have detected the issue is related to the following code in SurveyAndQuestionController --

questionToUpdate.Choices__c = String.escapeSingleQuotes(qChoices);

As the Choices__c for Free Text Question Type is always null, the funcation String.escapeSingleQuotes() will pop up an error if parm is null.

image

jrattanpal commented 4 years ago

Thanks for reporting this! Another thanks for providing the error line that resulted in quick fix.

Fix for this has been submitted. https://github.com/SalesforceLabs/survey-force/commit/f7ca449b30f3ab0368a117cf062217097ca90d20

Please test it and let me know if you see any issues.