diff --git a/html/js/acc_ledger.js b/html/js/acc_ledger.js index ad61786f7..4cbc79070 100644 --- a/html/js/acc_ledger.js +++ b/html/js/acc_ledger.js @@ -1085,6 +1085,7 @@ function op_save(obj) var answer=xml.responseXML; var html = answer.getElementsByTagName('code'); $(divid).innerHTML=unescape(getNodeText(html[0])); + $(divid).innerHTML.evalScripts(); remove_waiting_box(); } catch (e) { alert_box("1038"+e.message) diff --git a/include/class/class_anc_operation.php b/include/class/class_anc_operation.php index 16837db1c..52f2df93a 100644 --- a/include/class/class_anc_operation.php +++ b/include/class/class_anc_operation.php @@ -800,6 +800,7 @@ class Anc_Operation function save_update_form($p_array) { extract($p_array); + if ( ! isset($opanc)) return; for ($i = 0; $i < count($opanc); $i++) { /* clean operation_analytique */ diff --git a/include/class/class_document.php b/include/class/class_document.php index 710b75408..d3a544c32 100644 --- a/include/class/class_document.php +++ b/include/class/class_document.php @@ -192,7 +192,7 @@ class Document $h=fopen($infile_name,"r"); // check if tmpdir exist otherwise create it - $temp_dir=$_SERVER["DOCUMENT_ROOT"].DIRECTORY_SEPARATOR.'tmp'; + $temp_dir=$_ENV['TMP']; if ( is_dir($temp_dir) == false ) { if ( mkdir($temp_dir) == false ) diff --git a/include/constant.php b/include/constant.php index 27f3fed1a..de0dcbba4 100644 --- a/include/constant.php +++ b/include/constant.php @@ -104,7 +104,7 @@ if ( !defined("SITE_UPDATE_PLUGIN")) if ( ! defined ("SYSINFO_DISPLAY")) { define ("SYSINFO_DISPLAY",TRUE); } -define ("DBVERSION",124); +define ("DBVERSION",125); define ("MONO_DATABASE",25); define ("DBVERSIONREPO",16); define ('NOTFOUND','--not found--'); diff --git a/include/template/detail-action.php b/include/template/detail-action.php index 215011ca7..349050b15 100644 --- a/include/template/detail-action.php +++ b/include/template/detail-action.php @@ -342,7 +342,6 @@ if ( ($aCard[$i] != 0 && $p_view == 'READ') || $p_view != 'READ'):