Update card.php
This commit is contained in:
parent
7b2ceaf177
commit
ca30a6d692
1 changed files with 1 additions and 5 deletions
|
|
@ -1004,16 +1004,12 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|||
* Creation
|
||||
*/
|
||||
$private = GETPOSTINT("private");
|
||||
if (getDolGlobalString('THIRDPARTY_DEFAULT_CREATE_CONTACT') && !GETPOSTISSET('private')) {
|
||||
if (getDolGlobalString('THIRDPARTY_DEFAULT_CREATE_CONTACT') && !GETPOSTISSET('private') && GETPOST("type", 'aZ') != 'f') {
|
||||
$private = 1;
|
||||
}
|
||||
if (empty($private)) {
|
||||
$private = 0;
|
||||
}
|
||||
// by default supplier is a professional
|
||||
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