Fix go back on thirdparty file after Save
This commit is contained in:
parent
e965d6d6f2
commit
30c29f13c8
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user