From fb7d365ee9287c357d83094f313df68be4f84b28 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 20 Jun 2006 20:34:09 +0000 Subject: [PATCH] add field types to www_editQuestionSave --- docs/changelog/6.x.x.txt | 1 + lib/WebGUI/Asset/Wobject/Survey.pm | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index ab1abb04f..ed56738a9 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -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. diff --git a/lib/WebGUI/Asset/Wobject/Survey.pm b/lib/WebGUI/Asset/Wobject/Survey.pm index ef6b9febf..beefbf96e 100644 --- a/lib/WebGUI/Asset/Wobject/Survey.pm +++ b/lib/WebGUI/Asset/Wobject/Survey.pm @@ -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");