diff --git a/include/class_acc_ledger.php b/include/class_acc_ledger.php
index 0aee330df..be5dd39ae 100644
--- a/include/class_acc_ledger.php
+++ b/include/class_acc_ledger.php
@@ -2616,7 +2616,7 @@ class Acc_Ledger extends jrn_def_sql
$r='';
$type=$this->type;
- if ( $type=="" || $this->id==0) $type='ALL';
+ if ( $type=="") $type='ALL';
$r.='
';
$r.=HtmlInput::anchor_hide('Fermer','$(\'search_form\').style.display=\'none\';');
$r.=h2info('Recherche');
diff --git a/include/history_operation.inc.php b/include/history_operation.inc.php
index b86b19bc0..523da7519 100644
--- a/include/history_operation.inc.php
+++ b/include/history_operation.inc.php
@@ -46,11 +46,13 @@ if ( isset ($_GET['ledger_type']))
$Ledger=new Acc_Ledger($cn,0);
$ask_pay=0;
$p_array['ledger_type']='ODS';
+ $Ledger->type='ODS';
break;
case 'ALL':
$Ledger=new Acc_Ledger($cn,0);
$ask_pay=0;
$p_array['ledger_type']='ALL';
+ $Ledger->type='ALL';
break;
case 'VEN':
$Ledger=new Acc_Ledger_Sold($cn,0);