Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX : Confusing behavior by add hidden conf MAIN_LIST_ORDER_LINK_DONT_U… #31722

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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