diff --git a/html/do.php b/html/do.php index 70c000953..908b217bd 100644 --- a/html/do.php +++ b/html/do.php @@ -137,7 +137,7 @@ if (isset($_REQUEST['ac'])) show_menu($all, $i); } } -elseif (isset($_REQUEST['plugin_code'])) +/*elseif (isset($_REQUEST['plugin_code'])) { $default = find_default_module(); $_GET['ac']=$default; @@ -147,7 +147,7 @@ elseif (isset($_REQUEST['plugin_code'])) $all[0] = $default; show_menu($all, 0); require_once 'extension_choice.inc.php'; -} +}*/ else { $default = find_default_module(); diff --git a/html/js/scripts.js b/html/js/scripts.js index d9c2acd56..5301eac2a 100644 --- a/html/js/scripts.js +++ b/html/js/scripts.js @@ -1032,9 +1032,12 @@ function search_reconcile(dossier,ctl_concern,amount_id,ledger) {amount_id=0;} else if ($(amount_id)) { - if ($(amount_id).value) {amount_id=$(amount_id).value;} - else if ($(amount_id).innerHTML) {amount_id=$(amount_id).innerHTML;} + if ($(amount_id).value) + {amount_id=$(amount_id).value;} + else if + ($(amount_id).innerHTML) {amount_id=$(amount_id).innerHTML;} } + var target="search_op"; removeDiv(target); var str_style=fixed_position(77, 99) diff --git a/include/class_acc_ledger.php b/include/class_acc_ledger.php index 957044d13..e10fc1dc6 100644 --- a/include/class_acc_ledger.php +++ b/include/class_acc_ledger.php @@ -1475,7 +1475,7 @@ class Acc_Ledger extends jrn_def_sql $user = new User($this->db); if ( $p_readonly == 1 ) - return $this->show_summary($p_array); + return $this->confirm($p_array); if ( $p_array != null ) extract($p_array); diff --git a/include/extension_choice.inc.php b/include/extension_choice.inc.php index a2f14a611..29ee97fd2 100644 --- a/include/extension_choice.inc.php +++ b/include/extension_choice.inc.php @@ -40,6 +40,7 @@ if ( count($a->value)==1 ) } else { + if (!isset($_REQUEST['ac'])) echo_warning ("ac non positionné"); echo '