noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 148/323: Fix : ajax_history : history of acco


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 148/323: Fix : ajax_history : history of accounting , exercice was not set
Date: Wed, 14 Mar 2018 17:38:41 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 3fa0f3b03a06ba276a348c3bcfa29d98b1b6953c
Author: Dany De Bontridder <address@hidden>
Date:   Wed Feb 7 19:44:07 2018 +0100

    Fix : ajax_history : history of accounting , exercice was not set
---
 include/ajax/ajax_history.php | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/include/ajax/ajax_history.php b/include/ajax/ajax_history.php
index 128fc6d..f3fb23b 100644
--- a/include/ajax/ajax_history.php
+++ b/include/ajax/ajax_history.php
@@ -53,8 +53,10 @@ if ( isset($_GET['f_id']))
     $f_id=$http->get('f_id',"number");
     $fiche=new Fiche($cn,$f_id);
     
-    $year=$http->get("exercice","string",$g_user->get_exercice());
-    if ( $year == 0 )
+    $year=$http->get("exercice","string","");
+    if ( $year == "") $year=$g_user->get_exercice();
+
+    if ( $year == "" )
       {
         $html=_("erreur aucune période par défaut, allez dans préférence pour 
en choisir une");
       }
@@ -137,7 +139,8 @@ if ( isset($_REQUEST['pcm_val']))
   {
     $poste=new Acc_Account_Ledger($cn,$_REQUEST['pcm_val']);
     $poste->load();
-    $year=$http->get("exercice","string",$g_user->get_exercice());
+    $year=$http->get("exercice","string","");
+    if ( $year == "") $year=$g_user->get_exercice();
     if ( $year == 0 )
       {
         $html=_("erreur aucune période par défaut, allez dans préférence pour 
en choisir une");



reply via email to

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