Plugin Directory

Changeset 3354805


Ignore:
Timestamp:
09/02/2025 02:45:16 PM (7 months ago)
Author:
formdev
Message:

fix update particulier and redirection

Location:
formdev/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • formdev/trunk/api/Formdev.php

    r3353972 r3354805  
    11411141            $siret = $user_datas['siret'];
    11421142        }
     1143        if($siret == ''){
     1144            $isProfessional = 0;
     1145        }
    11431146        $gender = 1;
    11441147        if(isset($user_datas['titre'])){
     
    11841187                    }
    11851188                }
     1189                if($idAction == 0)
     1190                    $idAction = null;
    11861191
    11871192                //if (!empty($learners)) {
  • formdev/trunk/formdev.php

    r3354735 r3354805  
    55 * Plugin URI: https://www.form-dev.fr
    66 * Description: Synchroniser automatiquement les formations présentes dans votre CRM Formdev
    7  * Version: 1.1.7
     7 * Version: 1.1.8
    88 * Author: Formdev
    99 * Author URI: https://app.form-dev.fr
     
    1616// Définition de la version du plugin
    1717if (!defined('FORMEDEV_VERSION')) {
    18     define('FORMEDEV_VERSION', '1.1.7');
     18    define('FORMEDEV_VERSION', '1.1.8');
    1919}
    2020
     
    974974           
    975975            // Rediriger vers la page de confirmation
    976             wp_safe_redirect($redirect_url);
    977             exit;
     976            if (!headers_sent()) {
     977                wp_safe_redirect($redirect_url);
     978                exit;
     979            } else {
     980                // Fallback si les en-têtes ont déjà été envoyés
     981                echo '<script>window.location.href = "' . esc_url($redirect_url) . '";</script>';
     982                exit;
     983            }
    978984        }
    979985    }
  • formdev/trunk/readme.txt

    r3354735 r3354805  
    55Tested up to: 6.8 
    66Requires PHP: 7.4 
    7 Stable tag: 1.1.7
     7Stable tag: 1.1.8
    88License: GPLv2 or later 
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html 
     
    6868
    6969== Changelog ==
     70= 1.1.8 =
     71* fix update particulier and redirection
     72
    7073= 1.1.7 =
    7174* fix update particulier
Note: See TracChangeset for help on using the changeset viewer.