Update card.php

This commit is contained in:
Laurent Destailleur 2019-02-27 13:37:53 +01:00 committed by GitHub
parent 8390ed346b
commit e873608d84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -387,8 +387,11 @@ if (empty($reshook)) {
$dateemploymentend = dol_mktime(0, 0, 0, GETPOST('dateemploymentendmonth', 'int'), GETPOST('dateemploymentendday', 'int'), GETPOST('dateemploymentendyear', 'int'));
$object->dateemploymentend = $dateemploymentend;
$object->fk_warehouse = GETPOST('fk_warehouse', 'int');
if (! empty($conf->stock->enabled))
{
$object->fk_warehouse = GETPOST('fk_warehouse', 'int');
}
if (! empty($conf->multicompany->enabled))
{
if (! empty($_POST["superadmin"]))