Skip to content

Commit

Permalink
[-] MO : Autoupgrade, bad reset on vars in 1.5.6.1 installer
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Nov 21, 2013
1 parent 3a8bf6d commit 5bc941d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions autoupgrade/AdminSelfUpgrade.php
Expand Up @@ -2256,6 +2256,17 @@ public function doUpgrade()
if (version_compare(INSTALL_VERSION, '1.5.5.0', '=') && $func_name == 'fix_download_product_feature_active')
continue;

if (version_compare(INSTALL_VERSION, '1.5.6.1', '=') && $func_name == 'migrate_orders')
{
$filename = _PS_INSTALLER_PHP_UPGRADE_DIR_.strtolower($func_name).'.php';
$content = file_get_contents($filename);
$str_old[] = '$values_order_detail = array();';
$str_old[] = '$values_order = array();';
$str_old[] = '$col_order_detail = array();';
$content = str_replace($str_old, '', $content);
file_put_contents($filename, $content);
}

if (!file_exists(_PS_INSTALLER_PHP_UPGRADE_DIR_.strtolower($func_name).'.php'))
{
$this->nextQuickInfo[] = '<div class="upgradeDbError">[ERROR] '.$upgrade_file.' PHP - missing file '.$query.'</div>';
Expand Down

0 comments on commit 5bc941d

Please sign in to comment.