Skip to content

Commit

Permalink
Fix upgrade2, migrate_productlot_path() need $user. (#32125)
Browse files Browse the repository at this point in the history
* Fix upgrade2, migrate_productlot_path() need $user.

* Fix stan

* Revert "Fix stan"

This reverts commit 5fff701.

* Revert "Fix upgrade2, migrate_productlot_path() need $user."

This reverts commit faf40ee.

* Fix upgrade2, migrate_productlot_path() need $user.
  • Loading branch information
fappels authored Nov 28, 2024
1 parent d434cd4 commit fc0e5c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions htdocs/install/upgrade2.php
Original file line number Diff line number Diff line change
Expand Up @@ -4401,6 +4401,11 @@ function migrate_productlot_path()
{
global $conf, $db, $langs, $user;

if (!is_object($user)) {
include_once DOL_DOCUMENT_ROOT.'/user/class/user.class.php';
$user = new User($db); // To avoid error during migration
}

print '<tr><td colspan="4">';

print '<b>'.$langs->trans('MigrationProductLotPath')."</b><br>\n";
Expand Down

0 comments on commit fc0e5c5

Please sign in to comment.