diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php index abaa9547a95..7549b97bd5d 100644 --- a/htdocs/install/upgrade2.php +++ b/htdocs/install/upgrade2.php @@ -1922,6 +1922,8 @@ function migrate_price_commande($db, $langs, $conf) */ function migrate_price_commande_fournisseur($db, $langs, $conf) { + global $mysoc; + $db->begin(); $tmpmysoc = new Societe($db);