mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Modify getListOfContactTypes for expedition type (#35726)
* Modify getListOfContactTypes for expedition type Adjust the contact type based on shipping settings. * Update api_setup.class.php * Update api_setup.class.php --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
@@ -1042,6 +1042,10 @@ class Setup extends DolibarrApi
|
||||
{
|
||||
$list = array();
|
||||
|
||||
if ($type == 'expedition' && !getDolGlobalInt('SHIPPING_USE_ITS_OWN_CONTACTS')) {
|
||||
$type = 'commande';
|
||||
}
|
||||
|
||||
$sql = "SELECT rowid, code, element as type, libelle as label, source, module, position";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."c_type_contact as t";
|
||||
$sql .= " WHERE t.active = ".((int) $active);
|
||||
|
||||
Reference in New Issue
Block a user