diff --git a/htdocs/commande/list_det.php b/htdocs/commande/list_det.php
index fd36f229e5c..651b8fffe8d 100644
--- a/htdocs/commande/list_det.php
+++ b/htdocs/commande/list_det.php
@@ -793,6 +793,15 @@ if ($resql) {
if ($search_fk_input_reason > 0) {
$param .= '&search_fk_input_reason='.urlencode($search_fk_input_reason);
}
+ if (!empty($productobuy)) {
+ $param .= '&productobuy='.urlencode($productobuy);
+ }
+ if (!empty($productonly)) {
+ $param .= '&productonly='.urlencode($productonly);
+ }
+ if (!empty($disablelinefree)) {
+ $param .= '&disablelinefree='.urlencode($disablelinefree);
+ }
// Add $param from extra fields
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
@@ -830,10 +839,6 @@ if ($resql) {
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'order', 0, $newcardbutton, '', $limit, 0, 0, 1);
- print '';
- print '';
- print '';
-
$topicmail = "SendOrderRef";
$modelmail = "order_send";
$objecttmp = new Commande($db);
@@ -849,6 +854,11 @@ if ($resql) {
$moreforfilter = '';
+ $moreforfilter .= '';
+ $moreforfilter .= '';
+ $moreforfilter .= '';
+ $moreforfilter .= '
';
+
// If the user can view prospects other than his'
if ($user->rights->user->user->lire) {
$langs->load("commercial");
@@ -888,6 +898,8 @@ if ($resql) {
$moreforfilter .= img_picto($tmptitle, 'stock', 'class="pictofixedwidth"').$formproduct->selectWarehouses($search_warehouse, 'search_warehouse', '', 1, 0, 0, $tmptitle, 0, 0, array(), 'maxwidth250 widthcentpercentminusx');
$moreforfilter .= '';
}
+
+
$parameters = array();
$reshook = $hookmanager->executeHooks('printFieldPreListTitle', $parameters); // Note that $action and $object may have been modified by hook
if (empty($reshook)) {