Debug reception contacts and list

This commit is contained in:
Francis Appels 2021-01-03 12:21:20 +01:00
parent cbf6fe1f62
commit 50d2e2d161
2 changed files with 4 additions and 7 deletions

View File

@ -67,11 +67,6 @@ if ($id > 0 || !empty($ref))
$objectsrc = new CommandeFournisseur($db);
$objectsrc->fetch($object->$typeobject->id);
}
if ($typeobject == 'propal' && $object->$typeobject->id && !empty($conf->propal->enabled))
{
$objectsrc = new Propal($db);
$objectsrc->fetch($object->$typeobject->id);
}
}
@ -83,7 +78,9 @@ if ($action == 'addcontact' && $user->rights->reception->creer)
{
if ($result > 0 && $id > 0)
{
$result = $objectsrc->add_contact(GETPOST('userid') ? GETPOST('userid') : GETPOST('contactid'), $_POST["type"], $_POST["source"]);
$contactid = (GETPOST('userid', 'int') ? GETPOST('userid', 'int') : GETPOST('contactid', 'int'));
$typeid = (GETPOST('typecontact') ? GETPOST('typecontact') : GETPOST('type'));
$result = $objectsrc->add_contact($contactid, $typeid, GETPOST("source", 'aZ09'));
}
if ($result >= 0)

View File

@ -505,7 +505,7 @@ if ($resql)
if ($search_town) $param .= "&search_town=".urlencode($search_town);
if ($search_zip) $param .= "&search_zip=".urlencode($search_zip);
if ($search_state) $param .= "&search_state=".urlencode($search_state);
if ($search_status) $param .= "&search_status=".urlencode($search_status);
if ($search_status != '') $param .= "&search_status=".urlencode($search_status);
if ($search_country) $param .= "&search_country=".urlencode($search_country);
if ($search_type_thirdparty) $param .= "&search_type_thirdparty=".urlencode($search_type_thirdparty);
if ($search_ref_supplier) $param .= "&search_ref_supplier=".urlencode($search_ref_supplier);