add field types to www_editQuestionSave

This commit is contained in:
Colin Kuskie 2006-06-20 20:34:09 +00:00
parent 2bf7059e10
commit fb7d365ee9
2 changed files with 5 additions and 4 deletions

View file

@ -4,6 +4,7 @@
- fix: Upgrade from 6.8.10 to 6.99.4 failed
- fix: Missing label in HTTP Proxy: Filter Content
- fix: Wobject.pm confirm() is broken
- fix: Survey - editQuestionSave - yesNo fields always "yes"
- Fixed a memory leak in Spectre that could cause it to double in size
roughly every 30 hours under certain conditions.

View file

@ -1034,13 +1034,13 @@ sub www_editQuestionSave {
# XXX: In some cases not all form fields are present and then the SQL query failes
# because the array is not complete
# There has to be a better way to fix this problem, but adding "|| 1" works for now
question=>$self->session->form->process("question") || 1,
question=>$self->session->form->process("question", 'HTMLArea') || 1,
Survey_questionId=>$self->session->form->process("qid") || 1,
Survey_id=>$self->get("Survey_id") || 1,
allowComment=>$self->session->form->process("allowComment") || 1,
gotoQuestion=>$self->session->form->process("gotoQuestion") || 1,
allowComment=>$self->session->form->process("allowComment", 'yesNo') || 1,
gotoQuestion=>$self->session->form->process("gotoQuestion", 'selectBox') || 1,
answerFieldType=>$self->session->form->process("answerFieldType") || 1,
randomizeAnswers=>$self->session->form->process("randomizeAnswers") || 1,
randomizeAnswers=>$self->session->form->process("randomizeAnswers", 'yesNo') || 1,
Survey_sectionId=>$self->session->form->process("section") || 1
},1,0,"Survey_id");