• Hi!

    I discovered that two-step action links do not work properly any more. This feature is broken since 3.6.x, but it used to work in 3.5.x. The problem is that if such links are used, users are never asked for confirmation even if this feature is enabled in settings.

    I did some debugging and fixed this issue in my code. I’m sharing my findings and code here:

    In easy-appointments/src/mail.php line 167:
    OLD

    // check maybe it is a two step process
    if (empty($_POST['confirmed']) && (!empty($_POST['confirmed']) && $_POST['confirmed'] !== 'true')) 
    {
      $this->link_action_additional_step($_GET['_ea-action'], $data);
    }

    NEW

    // check maybe it is a two step process
    if (empty($_POST['confirmed']) && $_POST['confirmed'] !== 'true') 
    {
      $this->link_action_additional_step($_GET['_ea-action'], $data);
    }

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Adri.

    (@agfbdigital)

    I have fixed using this code and it works perfectly, but every time the plugin has an update, all the work gets lost. I tried to create a sub-folder on my child theme and even on the theme itself, but both don’t work. How can I solve this? Is there a way to keep changes safe even when the plugin is updated?
    Thanks a lot!

    Thread Starter polistus

    (@polistus)

    I guess your best bet is when @loncar updates the plugin to include this fix.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Two-step action links in email broken [FIXED]’ is closed to new replies.