Skip to content
Snippets Groups Projects
Commit 720bb76a authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix selection of model was not done on company bank accounts page

parent 7504af42
Branches
Tags
No related merge requests found
......@@ -49,7 +49,10 @@ if ($action == 'builddoc' && $permissioncreate)
}*/
// Save last template used to generate document
if (GETPOST('model')) $object->setDocModel($user, GETPOST('model','alpha'));
if (GETPOST('model'))
{
$object->setDocModel($user, GETPOST('model','alpha'));
}
// Special case to force bank account
//if (property_exists($object, 'fk_bank'))
......
......@@ -292,6 +292,7 @@ if (empty($reshook))
'force_dir_output'=>$conf->societe->dir_output.'/'.dol_sanitizeFileName($object->id)
);
$_POST['lang_id'] = GETPOST('lang_idrib'.GETPOST('companybankid'));
$_POST['model'] = GETPOST('modelrib'.GETPOST('companybankid'));
}
$id = $socid;
$upload_dir = $conf->societe->dir_output;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment