FIX #21472 On the bank transfer lists, a change of page switches to the lists of the direct debit module

This commit is contained in:
Alexandre SPANGARO 2022-07-18 07:23:25 +02:00
parent 149b86e459
commit ce15b8c44e
2 changed files with 7 additions and 1 deletions

View File

@ -173,6 +173,9 @@ if ($result) {
$param = "&statut=".urlencode($statut); $param = "&statut=".urlencode($statut);
$param .= "&search_bon=".urlencode($search_bon); $param .= "&search_bon=".urlencode($search_bon);
if ($type == 'bank-transfer') {
$param .= '&type=bank-transfer';
}
if ($limit > 0 && $limit != $conf->liste_limit) { if ($limit > 0 && $limit != $conf->liste_limit) {
$param .= '&limit='.urlencode($limit); $param .= '&limit='.urlencode($limit);
} }
@ -284,7 +287,7 @@ if ($result) {
$link_to_tab = '/comm/card.php?socid='; $link_to_tab = '/comm/card.php?socid=';
$link_code = $obj->code_client; $link_code = $obj->code_client;
if ($type == 'bank-transfer') { if ($type == 'bank-transfer') {
$link_to_tab = 'fourn/card.php?socid='; $link_to_tab = '/fourn/card.php?socid=';
$link_code = $obj->code_fournisseur; $link_code = $obj->code_fournisseur;
} }
print '<a href="'.DOL_URL_ROOT.$link_to_tab.$company->id.'">'.$link_code."</a></td>\n"; print '<a href="'.DOL_URL_ROOT.$link_to_tab.$company->id.'">'.$link_code."</a></td>\n";

View File

@ -132,6 +132,9 @@ if ($result) {
if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) { if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) {
$param .= '&contextpage='.urlencode($contextpage); $param .= '&contextpage='.urlencode($contextpage);
} }
if ($type == 'bank-transfer') {
$param .= '&amp;type=bank-transfer';
}
if ($limit > 0 && $limit != $conf->liste_limit) { if ($limit > 0 && $limit != $conf->liste_limit) {
$param .= '&limit='.urlencode($limit); $param .= '&limit='.urlencode($limit);
} }