DNNCommunity / DNN.Survey

MIT License
7 stars 8 forks source link

Error when submitting survey with free text field #35

Closed valadas closed 5 years ago

valadas commented 5 years ago

Describe the bug

An error occurs when submitting a survery that includes a free text option

Software Versions

To Reproduce

Steps to reproduce the behavior:

  1. Create a survey with a few single and multiple options questions
  2. Add a free text option
  3. Try to submit survey

Expected behavior

Survey should submit without errors

Screenshots

image

Error log

at System.Data.SqlClient.SqlBuffer.get_Boolean() at System.Data.SqlClient.SqlDataReader.GetBoolean(Int32 i) at petapoco_factory_0(IDataReader ) at PetaPoco.Database.d__21.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at PetaPoco.Database.Fetch[T](String sql, Object[] args) at DotNetNuke.Data.PetaPoco.PetaPocoDataContext.ExecuteQuery[T](CommandType type, String sql, Object[] args) at DNN.Modules.Survey.Components.Controllers.SurveyResultsController.Get(Int32 surveyID) in D:\websites\vendors\DesktopModules\DNN.Survey\DNN.Survey\Components\Controllers\SurveyResultsController.cs:line 79 at DNN.Modules.Survey.SurveyResults.OnPreRender(EventArgs e) in D:\websites\vendors\DesktopModules\DNN.Survey\DNN.Survey\SurveyResults.ascx.cs:line 211 at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)