Add default supplier type handling in card.php in creation mode
This commit is contained in:
parent
190da9cb8c
commit
7b2ceaf177
1 changed files with 3 additions and 2 deletions
|
|
@ -1011,8 +1011,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|||
$private = 0;
|
||||
}
|
||||
// by default supplier is a professional
|
||||
if (GETPOST("type", 'aZ') == 'f') $private = 0;
|
||||
|
||||
if (GETPOST("type", 'aZ') == 'f') {
|
||||
$private = 0;
|
||||
}
|
||||
// Load object modCodeClient
|
||||
$module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON', 'mod_codeclient_leopard');
|
||||
if (substr($module, 0, 15) == 'mod_codeclient_' && substr($module, -3) == 'php') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue