forked from Wavyzz/dolibarr
Fix selection of model was not done on company bank accounts page
This commit is contained in:
@@ -49,7 +49,10 @@ if ($action == 'builddoc' && $permissioncreate)
|
|||||||
}*/
|
}*/
|
||||||
|
|
||||||
// Save last template used to generate document
|
// 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
|
// Special case to force bank account
|
||||||
//if (property_exists($object, 'fk_bank'))
|
//if (property_exists($object, 'fk_bank'))
|
||||||
|
|||||||
@@ -292,6 +292,7 @@ if (empty($reshook))
|
|||||||
'force_dir_output'=>$conf->societe->dir_output.'/'.dol_sanitizeFileName($object->id)
|
'force_dir_output'=>$conf->societe->dir_output.'/'.dol_sanitizeFileName($object->id)
|
||||||
);
|
);
|
||||||
$_POST['lang_id'] = GETPOST('lang_idrib'.GETPOST('companybankid'));
|
$_POST['lang_id'] = GETPOST('lang_idrib'.GETPOST('companybankid'));
|
||||||
|
$_POST['model'] = GETPOST('modelrib'.GETPOST('companybankid'));
|
||||||
}
|
}
|
||||||
$id = $socid;
|
$id = $socid;
|
||||||
$upload_dir = $conf->societe->dir_output;
|
$upload_dir = $conf->societe->dir_output;
|
||||||
|
|||||||
Reference in New Issue
Block a user