From baf87ddbcd189aef405ab88f664a6dfe1ee135ca Mon Sep 17 00:00:00 2001 From: Mike Letellier Date: Fri, 5 Jun 2026 09:22:25 -0300 Subject: [PATCH] Fix duplicate legacy paypal action created on create --- classes/views/frm-form-actions/default_actions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/classes/views/frm-form-actions/default_actions.php b/classes/views/frm-form-actions/default_actions.php index 3d9cd48956..9d2ab4236b 100644 --- a/classes/views/frm-form-actions/default_actions.php +++ b/classes/views/frm-form-actions/default_actions.php @@ -52,6 +52,12 @@ public function __construct() { $this->id_base = 'paypal-legacy'; $this->name = 'PayPal (Legacy)'; + // FrmPaymentAction sets option_name to 'frm_paypal_action' using its 'paypal' + // id_base. Recompute it from the new id_base so this action does not share the + // POST data namespace with the PayPal add-on's 'paypal' action, which would make + // both action controls save the same submission and create a duplicate action. + $this->option_name = 'frm_' . $this->id_base . '_action'; + $this->action_options['is_beta'] = false; } }