Merge pull request #24303 from marc-dll/17.0_FIX_redirect_to_customer_card
FIX: societe list: regression to redirection to customer card when single result of search filters
This commit is contained in:
commit
80fb19fe3c
@ -776,7 +776,7 @@ if ($num == 1 && !empty($conf->global->MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE) && (
|
||||
$obj = $db->fetch_object($resql);
|
||||
$id = $obj->rowid;
|
||||
if (!empty($conf->global->SOCIETE_ON_SEARCH_AND_LIST_GO_ON_CUSTOMER_OR_SUPPLIER_CARD)) {
|
||||
if ($companystatic->client > 0) {
|
||||
if ($obj->client > 0) {
|
||||
header("Location: ".DOL_URL_ROOT.'/comm/card.php?socid='.$id);
|
||||
exit;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user