[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 20/65: Bug#1170 : button with wrong redirect
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 20/65: Bug#1170 : button with wrong redirect |
Date: |
Wed, 09 Sep 2015 08:27:12 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 87640c3bfdae9759a978b5154aedc1628d2c4455
Author: Dany De Bontridder <address@hidden>
Date: Mon Aug 31 18:59:38 2015 +0200
Bug#1170 : button with wrong redirect
---
include/class_fiche.php | 25 +++++++++++++------------
include/impress_poste.inc.php | 2 +-
2 files changed, 14 insertions(+), 13 deletions(-)
diff --git a/include/class_fiche.php b/include/class_fiche.php
index a9a0282..a7b2129 100644
--- a/include/class_fiche.php
+++ b/include/class_fiche.php
@@ -1388,21 +1388,22 @@ class Fiche
echo '<TR>';
echo '<TD><form method="GET" ACTION="">'.
- HtmlInput::submit('bt_other',"Autre poste").
- dossier::hidden().
-
$hid->input("type","poste").$hid->input('p_action','impress')."</form></TD>";
+ HtmlInput::submit('bt_other',"Autre poste").
+ HtmlInput::array_to_hidden(array('gDossier','ac'), $_REQUEST).
+ dossier::hidden().
+
$hid->input("type","poste").$hid->input('p_action','impress')."</form></TD>";
$str_ople=(isset($_REQUEST['ople']))?HtmlInput::hidden('ople',$_REQUEST['ople']):'';
echo '<TD><form method="GET" ACTION="export.php">'.
- HtmlInput::submit('bt_pdf',_("Export PDF")).
- dossier::hidden().$str_ople.
- HtmlInput::hidden('act','PDF:fichedetail').
- $hid->input("type","poste").
- $hid->input('p_action','impress').
- $hid->input("f_id",$this->id).
- dossier::hidden().
- $hid->input("from_periode",$p_array['from_periode']).
- $hid->input("to_periode",$p_array['to_periode']);
+ HtmlInput::submit('bt_pdf',_("Export PDF")).
+ dossier::hidden().$str_ople.
+ HtmlInput::hidden('act','PDF:fichedetail').
+ $hid->input("type","poste").
+ $hid->input('p_action','impress').
+ $hid->input("f_id",$this->id).
+ dossier::hidden().
+ $hid->input("from_periode",$p_array['from_periode']).
+ $hid->input("to_periode",$p_array['to_periode']);
if (isset($p_array['oper_detail']))
echo $hid->input('oper_detail','on');
diff --git a/include/impress_poste.inc.php b/include/impress_poste.inc.php
index 5b0ccd3..9301503 100644
--- a/include/impress_poste.inc.php
+++ b/include/impress_poste.inc.php
@@ -126,7 +126,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
{
if ( isDate($_REQUEST['from_periode'])==null ||
isDate($_REQUEST['to_periode'])==null)
{
- echo alert('Date malformée, désolée');
+ echo alert(_('Date malformée, désolée'));
return;
}
require_once NOALYSS_INCLUDE.'/class_acc_account_ledger.php';
- [Noalyss-commit] [noalyss] 05/65: Esthetic + the parent template is mandatory, (continued)
- [Noalyss-commit] [noalyss] 05/65: Esthetic + the parent template is mandatory, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 07/65: Ethetic button confirm and alert, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 13/65: Manuel and reduce size logo, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 14/65: bug in redirect, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 10/65: Esthetic + upgrade db, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 16/65: order by receipt number in dashboard, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 11/65: Esthetic, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 17/65: When creating a new event from dashboard then the event date is the remind date, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 18/65: Update the template for the config file, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 19/65: remove margin in tabs_, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 20/65: Bug#1170 : button with wrong redirect,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 21/65: Bug#1166 : in No VAT mode , the amount is divided by 1000, due to an excedent of nbm, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 23/65: beter size for subject, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 15/65: bug in redirect, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 24/65: Update documentation, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 22/65: Script SQL à ajouter, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 27/65: Better debugging : add a button to show the request $_POST and $_GET, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 25/65: insert contact, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 29/65: Bug#1158 : sign and side of Analytic accountancy, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 30/65: comment, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 31/65: Fix issue : cannot zoom an operation after saving it., Dany De Bontridder, 2015/09/09