diff options
Diffstat (limited to 'web/questionnaire.cgi')
-rwxr-xr-x | web/questionnaire.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/questionnaire.cgi b/web/questionnaire.cgi index 60a4be188..f7b7df0e1 100755 --- a/web/questionnaire.cgi +++ b/web/questionnaire.cgi @@ -142,8 +142,8 @@ sub submit_questionnaire { my $name = $problem->{anonymous} ? undef : $problem->{name}; my $update = $input{update} ? $input{update} : _('Questionnaire filled in by problem reporter'); Utils::workaround_pg_bytea("insert into comment - (problem_id, name, email, website, text, state, mark_fixed, mark_open, photo, lang, cobrand, cobrand_data) - values (?, ?, ?, '', ?, 'confirmed', ?, ?, ?, ?, ?, ?)", 7, + (problem_id, name, email, website, text, state, mark_fixed, mark_open, photo, lang, cobrand, cobrand_data, confirmed) + values (?, ?, ?, '', ?, 'confirmed', ?, ?, ?, ?, ?, ?, ms_current_timestamp())", 7, $problem->{id}, $name, $problem->{email}, $update, $new_state eq 'fixed' ? 't' : 'f', $new_state eq 'confirmed' ? 't' : 'f', $image, $mySociety::Locale::lang, $cobrand, $cobrand_data |