[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 06/14: Task #1044 - Implementation de Test A
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 06/14: Task #1044 - Implementation de Test Ajout mécanisme test pour ajax |
Date: |
Sun, 16 Nov 2014 14:27:53 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 7a8169a80a8b476132b5dd6c8565cc6d0cc43219
Author: Dany De Bontridder <address@hidden>
Date: Sun Nov 16 15:20:45 2014 +0100
Task #1044 - Implementation de Test
Ajout mécanisme test pour ajax
---
html/ajax_ledger.php | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/html/ajax_ledger.php b/html/ajax_ledger.php
index 2c319c7..a1ef7c4 100644
--- a/html/ajax_ledger.php
+++ b/html/ajax_ledger.php
@@ -122,7 +122,7 @@ if ($ledger=="")
ob_end_clean();
$html=escape_xml($html);
- header('Content-type: text/xml; charset=UTF-8');
+ if ( ! headers_sent()) { header('Content-type: text/xml;
charset=UTF-8');} else { echo "HTML".unescape_xml($html);}
echo <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<data>
@@ -511,6 +511,12 @@ case 'save':
//////////////////////////////////////////////////////////////////
$op->save_info($_POST['OTHER'],'OTHER');
$op->save_info($_POST['BON_COMMANDE'],'BON_COMMANDE');
+ ///////////////////////////////////////////////////////////////////
+ // Save related
+ //////////////////////////////////////////////////////////////////
+ $related=HtmlInput::default_value_post("related", "0");
+ if ($related == "0" ) throw new
Exception('Parameter not send -> related'.__FILE__.__LINE__,10);
+ $op->insert_related_action($related);
}
echo _('Opération sauvée');
@@ -574,8 +580,9 @@ case 'reverseop':
break;
}
$html=escape_xml($html);
-header('Content-type: text/xml; charset=UTF-8');
-echo <<<EOF
+ if ( ! headers_sent()) { header('Content-type: text/xml;
charset=UTF-8');} else { echo "HTML".unescape_xml($html);}
+
+ echo <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<data>
<ctl>$div</ctl>
- [Noalyss-commit] [noalyss] branch master updated (c7703ab -> acb55b3), Dany De Bontridder, 2014/11/16
- [Noalyss-commit] [noalyss] 01/14: Amélioration pour ajout catégorie : dimension div, Dany De Bontridder, 2014/11/16
- [Noalyss-commit] [noalyss] 03/14: Task #1045 - Amélioration apparence : Apparence, Dany De Bontridder, 2014/11/16
- [Noalyss-commit] [noalyss] 04/14: Task #1045 - Amélioration apparence : Apparence, Dany De Bontridder, 2014/11/16
- [Noalyss-commit] [noalyss] 05/14: Task #1044 - Implementation de Test Ajout mécanisme test pour ajax, Dany De Bontridder, 2014/11/16
- [Noalyss-commit] [noalyss] 06/14: Task #1044 - Implementation de Test Ajout mécanisme test pour ajax,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 02/14: Task #1042 - Amélioration VERIFBIL VERIFBIL typo, Dany De Bontridder, 2014/11/16
- [Noalyss-commit] [noalyss] 07/14: Amélioration détail opération : actions attachées, Dany De Bontridder, 2014/11/16
- [Noalyss-commit] [noalyss] 08/14: Amélioration détail opération : actions attachées, Dany De Bontridder, 2014/11/16
- [Noalyss-commit] [noalyss] 10/14: typo, Dany De Bontridder, 2014/11/16
- [Noalyss-commit] [noalyss] 12/14: typo, Dany De Bontridder, 2014/11/16
- [Noalyss-commit] [noalyss] 09/14: Task #1045 - Amélioration apparence : Bouton pour ajout action, Dany De Bontridder, 2014/11/16
- [Noalyss-commit] [noalyss] 14/14: Ajout function pour enlever relation opération - action, Dany De Bontridder, 2014/11/16
- [Noalyss-commit] [noalyss] 11/14: Amélioration détail opération : actions attachées, Dany De Bontridder, 2014/11/16
- [Noalyss-commit] [noalyss] 13/14: Task #1045 - Amélioration apparence : Détail opération : avec onglet + action liée (ajout + suppression), Dany De Bontridder, 2014/11/16