noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 29/32: Bug : ledger doesn't exist in 7.4 beca


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 29/32: Bug : ledger doesn't exist in 7.4 because the return value
Date: Thu, 5 Jan 2023 14:18:32 -0500 (EST)

sparkyx pushed a commit to branch devel
in repository noalyss.

commit c9a16035cae68fbadff881f4e12bfe0a96834867
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu Jan 5 11:37:02 2023 +0100

    Bug : ledger doesn't exist in 7.4 because the return value
---
 include/cfgledger.inc.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/cfgledger.inc.php b/include/cfgledger.inc.php
index aee29ec83..0ca66b31e 100644
--- a/include/cfgledger.inc.php
+++ b/include/cfgledger.inc.php
@@ -51,10 +51,10 @@ if (  $action_frm == 'update')
        try
        {
                $ledger->set_ledger_id($http->post('p_jrn',"number"));
-               if ( $ledger->load() == -1) throw new Exception (_('Journal 
inexistant'));
+               if ( $ledger->load() == false ) throw new Exception (_('Journal 
inexistant'));
                $ledger->verify_ledger($_POST);
                $ledger->update($_POST);
-                $show_menu=1;
+               $show_menu=1;
        } catch (Exception $e)
        {
             record_log($e->getMessage());
@@ -129,7 +129,7 @@ switch ($sa)
                        echo '<div class="content">';
                        echo '<form id="cfg_ledger_frm"  method="POST">';
                        echo $ledger->display_ledger();
-                        echo HtmlInput::hidden('action_frm','');
+                       echo HtmlInput::hidden('action_frm','');
                        echo '<INPUT TYPE="SUBMIT" class="smallbutton" 
VALUE="'._("Sauve").'" name="update" 
onClick="$(\'action_frm\').value=\'update\';return 
confirm_box(\'cfg_ledger_frm\',\'Valider ?\')">
                        <INPUT TYPE="RESET" class="smallbutton" VALUE="Reset">
                        <INPUT TYPE="submit" class="smallbutton"  name="efface" 
value="'._("Efface").'" onClick="$(\'action_frm\').value=\'delete\';return 
confirm_box(\'cfg_ledger_frm\',\'Vous effacez ce journal ?\')">';



reply via email to

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