-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1dabc6d
commit 729c706
Showing
2 changed files
with
7 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
* Copyright (C) 2015 Ari Elbaz (elarifr) <[email protected]> | ||
* Copyright (C) 2015-2018 Charlene Benke <[email protected]> | ||
* Copyright (C) 2016 Raphaël Doursenaud <[email protected]> | ||
* Copyright (C) 2018-2024 Frédéric France <[email protected]> | ||
* Copyright (C) 2018-2025 Frédéric France <[email protected]> | ||
* Copyright (C) 2018 David Beniamine <[email protected]> | ||
* Copyright (C) 2024 MDW <[email protected]> | ||
* | ||
|
@@ -70,17 +70,19 @@ | |
* @var HookManager $hookmanager | ||
* @var Translate $langs | ||
* @var User $user | ||
* | ||
* @var string $dolibarr_main_authentication | ||
*/ | ||
|
||
// Load translation files required by page | ||
$langs->loadLangs(array('users', 'companies', 'ldap', 'admin', 'hrm', 'stocks', 'other')); | ||
|
||
$id = GETPOSTINT('id'); | ||
$action = GETPOST('action', 'aZ09'); | ||
$action = GETPOST('action', 'aZ09'); | ||
$mode = GETPOST('mode', 'alpha'); | ||
$confirm = GETPOST('confirm', 'alpha'); | ||
$confirm = GETPOST('confirm', 'alpha'); | ||
$group = GETPOSTINT("group", 3); | ||
$cancel = GETPOST('cancel', 'alpha'); | ||
$cancel = GETPOST('cancel', 'alpha'); | ||
$contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'useracard'; // To manage different context of search | ||
|
||
if (empty($id) && $action != 'add' && $action != 'create') { | ||
|
@@ -876,6 +878,7 @@ | |
$formcompany = new FormCompany($db); | ||
$formadmin = new FormAdmin($db); | ||
$formfile = new FormFile($db); | ||
$formproduct = null; | ||
if (isModEnabled('stock')) { | ||
$formproduct = new FormProduct($db); | ||
} | ||
|