[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 09/11: Translation + use of httpInput
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 09/11: Translation + use of httpInput |
Date: |
Fri, 18 Jan 2019 12:24:27 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 865f656ed67cf44b1556164a4e4a9653e9eef089
Author: Dany De Bontridder <address@hidden>
Date: Fri Dec 28 10:00:06 2018 +0100
Translation + use of httpInput
---
include/compta_ods.inc.php | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/include/compta_ods.inc.php b/include/compta_ods.inc.php
index cab936d..0c15d15 100644
--- a/include/compta_ods.inc.php
+++ b/include/compta_ods.inc.php
@@ -40,8 +40,10 @@ global $g_user,$http;
$cn = Dossier::connect();
-$id_predef = (isset($_REQUEST['p_jrn_predef'])) ? $_REQUEST['p_jrn_predef'] :
-1;
-$id_ledger = (isset($_REQUEST['p_jrn'])) ? $_REQUEST['p_jrn'] : $id_predef;
+
+$id_predef = $http->request('p_jrn_predef','number',-1);
+$id_ledger = $http->request('p_jrn','number',$id_predef);
+
$ledger = new Acc_Ledger($cn, $id_ledger);
$first_ledger = $ledger->get_first('ODS');
if ( empty ($first_ledger))
@@ -91,7 +93,7 @@ elseif (isset($_POST['save']))
$ledger->save($array);
$jr_id = $cn->get_value('select jr_id from jrn where
jr_internal=$1', array($ledger->internal));
- echo '<h2> Opération enregistrée Piece ' .
h($ledger->pj) . '</h2>';
+ echo '<h2>'._("Opération enregistrée")._("Piece") .
h($ledger->pj) . '</h2>';
if (strcmp($ledger->pj, $_POST['e_pj']) != 0)
{
echo '<h3 class="notice">' . _('Attention numéro pièce
existante, elle a du être adaptée') . '</h3>';
- [Noalyss-commit] [noalyss] branch master updated (0de24ee -> 1971f32), Dany De Bontridder, 2019/01/18
- [Noalyss-commit] [noalyss] 02/11: remove dead code, Dany De Bontridder, 2019/01/18
- [Noalyss-commit] [noalyss] 03/11: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2019/01/18
- [Noalyss-commit] [noalyss] 04/11: Task #1660 : place the button for the inventory on the top, Dany De Bontridder, 2019/01/18
- [Noalyss-commit] [noalyss] 01/11: For 7.2 , $p_value must be initialized to an array in ISelect, Dany De Bontridder, 2019/01/18
- [Noalyss-commit] [noalyss] 11/11: Translation, Dany De Bontridder, 2019/01/18
- [Noalyss-commit] [noalyss] 07/11: by default jrn is an empty array, Dany De Bontridder, 2019/01/18
- [Noalyss-commit] [noalyss] 10/11: Translation, Dany De Bontridder, 2019/01/18
- [Noalyss-commit] [noalyss] 05/11: New function findSide return D if number is <0, Dany De Bontridder, 2019/01/18
- [Noalyss-commit] [noalyss] 06/11: Fix problem with total in balance export, Dany De Bontridder, 2019/01/18
- [Noalyss-commit] [noalyss] 09/11: Translation + use of httpInput,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 08/11: Task #0001309: Association d'une opération avec elle-même., Dany De Bontridder, 2019/01/18