Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions stripe/controllers/FrmTransLiteActionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,12 @@ public static function hide_gateway_field_on_front_end( $values, $field ) {
return $values;
}

if ( FrmAppHelper::is_form_builder_page() ) {
// The hooks this uses can get called in the form builder and settings pages.
// But we do not need the script in this case.
return $values;
}

// This is also called from the frm_enqueue_form_scripts hook.
// With this here, the value of frm_stripe_vars.settings[0].fields is -1
// This is because the amount value is processed and a shortcode is not found in '000'.
Expand Down
Loading