diff --git a/html/do.php b/html/do.php index b75e8a838..e09e51cbc 100644 --- a/html/do.php +++ b/html/do.php @@ -62,8 +62,7 @@ $http=new HttpInput(); IDate::set_firstDate($g_user->get_first_week_day()); ITva_Popup::set_vat_code($g_user->get_vat_code_preference()); -// check that the current user is saved into PostgreSQL setting in order to use it in PLPGSQL -\Noalyss\Dbg::echo_var(1,sprintf("current user is [%s]",$cn->get_value("select current_setting('noalyss.user_login')"))); + /* * check that the database is not empty @@ -85,6 +84,10 @@ if ($g_user->get_access_mode()=='MOBILE') { require NOALYSS_HOME."/mobile.php"; $style_user=$http->post("style_user","string",$_SESSION[SESSION_KEY.'g_theme']); html_page_start($style_user); + +// check that the current user is saved into PostgreSQL setting in order to use it in PLPGSQL +\Noalyss\Dbg::echo_var(1,sprintf("current user is [%s]",$cn->get_value("select current_setting('noalyss.user_login')"))); + if ( DEBUGNOALYSS > 1 ) { /** * Debug Design diff --git a/html/js/acc_ledger.js b/html/js/acc_ledger.js index 86c6fc0e6..059668cc6 100644 --- a/html/js/acc_ledger.js +++ b/html/js/acc_ledger.js @@ -1278,7 +1278,7 @@ function op_save(obj) { var divid = obj.whatdiv.value; queryString ["act"] = "save"; queryString ["op"] = "ledger"; - + waiting_box(); /* * Operation detail is in a new window @@ -1343,7 +1343,9 @@ function op_save(obj) { return false; } catch (e) { console.error("F1. op_save") - alert_box(e.message); + console.error(e.message) + alert_box("op_save "+e.message); + return false; } } @@ -1824,7 +1826,6 @@ var operation_exercice = { // For form , most of the parameters are in the FORM // method is then POST //var queryString=id$(p_form_id).serialize(true); - console.debug(row_operation_exercice); var queryString = { op: 'operation_exercice+modify_row', oe_id: oe_id, @@ -1843,7 +1844,6 @@ var operation_exercice = { reconnect(); return; } - console.debug(req.responseText) var y = calcy(15); var div_style = "position:absolute;" + ";top:" + y + "px"; add_div({id: dgbox, cssclass: 'inner_box', html: loading(), style: div_style, drag: true}); diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php index a471ddbe1..891fb7f11 100644 --- a/include/lib/ac_common.php +++ b/include/lib/ac_common.php @@ -314,7 +314,7 @@ function html_page_start($p_theme="", $p_script="", $p_script2="") if ($is_msie == 0 ) { - echo ''; + echo ''; printf("\n"); }