2
0
forked from Wavyzz/dolibarr

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

This commit is contained in:
Laurent Destailleur
2016-10-10 01:18:08 +02:00
parent 7504af42de
commit 720bb76a8f
2 changed files with 5 additions and 1 deletions

View File

@@ -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'))