Skip to content

Commit 58dc3d3

Browse files
committed
fix(formanswer): bad key for form ID
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 47398d0 commit 58dc3d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/formanswer.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ public function refuseAnswers($input) {
10341034
$input['save_formanswer'] = true;
10351035

10361036
$form = new PluginFormcreatorForm();
1037-
$form->getFromDB((int) $input['formcreator_form']);
1037+
$form->getFromDB((int) $input['plugin_formcreator_forms_id']);
10381038

10391039
// Prepare form fields for validation
10401040
if (!$this->canValidate($form, $this)) {
@@ -1061,7 +1061,7 @@ public function acceptAnswers($input) {
10611061
$input['save_formanswer'] = true;
10621062

10631063
$form = new PluginFormcreatorForm();
1064-
$form->getFromDB((int) $input['formcreator_form']);
1064+
$form->getFromDB((int) $input['plugin_formcreator_forms_id']);
10651065

10661066
// Prepare form fields for validation
10671067
if (!$this->canValidate($form, $this)) {

0 commit comments

Comments
 (0)