Skip to content

Commit

Permalink
Fix confusing behavior by add hidden conf MAIN_LIST_ORDER_LINK_DONT_U…
Browse files Browse the repository at this point in the history
…SE_STATUS
  • Loading branch information
thersane-john committed Nov 7, 2024
1 parent 9374a31 commit a725f30
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion htdocs/commande/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -2212,7 +2212,15 @@
// Ref
if (!empty($arrayfields['c.ref']['checked'])) {
print '<td class="nowraponall">';
print $generic_commande->getNomUrl(1, ($search_status != 2 ? 0 : $obj->fk_statut), 0, 0, 0, 1, 1);
$getNomUrlOption = $search_status != 2 ? 0 : $obj->fk_statut;
if (getDolGlobalInt('MAIN_LIST_ORDER_LINK_DONT_USE_STATUS')) {
// TODO : This hidden conf must be added to the user's individual conf.
// The user must be able to manage this behavior to adapt it to his use of the software, because depending on the employee's workstation, his use differs.
// This hidden configuration ensures that users are not confused by keeping the same behavior of click, whatever the current filter.
// If the aim is to use a different url when the filter is applied via the link in the left-hand menu, then this detection should be adapted instead.
$getNomUrlOption = '';
}
print $generic_commande->getNomUrl(1, $getNomUrlOption, 0, 0, 0, 1, 1);

$filename = dol_sanitizeFileName($obj->ref);
$filedir = $conf->commande->multidir_output[$conf->entity].'/'.dol_sanitizeFileName($obj->ref);
Expand Down

0 comments on commit a725f30

Please sign in to comment.