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");
|
$langs->load("mails");
|
||||||
}
|
}
|
||||||
|
|
||||||
$mesg = ''; $error = 0; $errors = array();
|
$error = 0; $errors = array();
|
||||||
|
|
||||||
$action = (GETPOST('action', 'aZ09') ? GETPOST('action', 'aZ09') : 'view');
|
$action = (GETPOST('action', 'aZ09') ? GETPOST('action', 'aZ09') : 'view');
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
$cancel = GETPOST('cancel', 'alpha');
|
||||||
@ -90,6 +90,7 @@ if ($user->socid) {
|
|||||||
if (empty($socid) && $action == 'view') {
|
if (empty($socid) && $action == 'view') {
|
||||||
$action = 'create';
|
$action = 'create';
|
||||||
}
|
}
|
||||||
|
$id = $socid;
|
||||||
|
|
||||||
$object = new Societe($db);
|
$object = new Societe($db);
|
||||||
$extrafields = new ExtraFields($db);
|
$extrafields = new ExtraFields($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user