noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 05/07: Bug #0002197: Journaux désactivés enco


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 05/07: Bug #0002197: Journaux désactivés encore partiellement visibles
Date: Fri, 30 Sep 2022 09:35:56 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 9a2527aa3db1a0728d34fdc085061e79a949cb62
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon Sep 19 21:43:39 2022 +0200

    Bug #0002197: Journaux désactivés encore partiellement visibles
---
 include/class/acc_ledger.class.php | 2 +-
 sql/upgrade.sql                    | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/class/acc_ledger.class.php 
b/include/class/acc_ledger.class.php
index 0595a7998..a3fe4f913 100644
--- a/include/class/acc_ledger.class.php
+++ b/include/class/acc_ledger.class.php
@@ -1597,7 +1597,7 @@ class Acc_Ledger  extends jrn_def_sql
     public function get_first($p_type, $p_access=3)
     {
         global $g_user;
-        $all=$g_user->get_ledger($p_type, $p_access);
+        $all=$g_user->get_ledger($p_type, $p_access,false);
         if (empty ($all)) return NULL;
         return $all[0];
     }
diff --git a/sql/upgrade.sql b/sql/upgrade.sql
index e69de29bb..c964a7685 100644
--- a/sql/upgrade.sql
+++ b/sql/upgrade.sql
@@ -0,0 +1,2 @@
+update menu_ref set me_menu='Journal' where me_code='CFGLED';
+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]