Skip to content

Commit

Permalink
Fix minor bugs with form class
Browse files Browse the repository at this point in the history
Issue #750
  • Loading branch information
fpcorso committed Aug 20, 2020
1 parent 6298447 commit c6531e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Integration/Form/FormidableForms.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class PUM_Integration_Form_FormidableForms extends PUM_Abstract_Integration_Form
* Could be used for other initiations as well where needed.
*/
public function __construct() {
add_action( 'frm_after_create_entry', array( $this, 'on_success' ), 1 );
add_action( 'frm_after_create_entry', array( $this, 'on_success' ), 1, 2 );
}

/**
Expand Down Expand Up @@ -75,7 +75,7 @@ public function get_form_selectlist() {
$forms = $this->get_forms();

foreach ( $forms as $form ) {
$form_selectlist[ $form->ID ] = $form->name;
$form_selectlist[ $form->id ] = $form->name;
}

return $form_selectlist;
Expand Down

0 comments on commit c6531e7

Please sign in to comment.