Fix go back on thirdparty file after Save

This commit is contained in:
Laurent Destailleur 2021-09-03 13:19:37 +02:00
parent e965d6d6f2
commit 30c29f13c8

View File

@ -76,7 +76,7 @@ if (!empty($conf->notification->enabled)) {
$langs->load("mails");
}
$mesg = ''; $error = 0; $errors = array();
$error = 0; $errors = array();
$action = (GETPOST('action', 'aZ09') ? GETPOST('action', 'aZ09') : 'view');
$cancel = GETPOST('cancel', 'alpha');
@ -90,6 +90,7 @@ if ($user->socid) {
if (empty($socid) && $action == 'view') {
$action = 'create';
}
$id = $socid;
$object = new Societe($db);
$extrafields = new ExtraFields($db);