From: Moritz Bunkus Date: Wed, 6 May 2009 13:27:14 +0000 (+0000) Subject: Die Historiensuchmaske nicht mehr per JavaScript abschicken und dem
-Element... X-Git-Tag: release-2.6.0beta2~16 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7dd95f35ee3adf728460ea79d940cf6ae556d3b8;p=kivitendo-erp.git Die Historiensuchmaske nicht mehr per JavaScript abschicken und dem -Element den Action-Parameter mitgeben. Damit funktioniert nun auch das Abschicken per Enter-Taste, und der Request wird vom Browser nicht mehr zwei mal geschickt. --- diff --git a/SL/Form.pm b/SL/Form.pm index 2d4d5e432..675d9adc6 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -3168,9 +3168,8 @@ sub get_history { qq|SELECT h.employee_id, h.itime::timestamp(0) AS itime, h.addition, h.what_done, emp.name, h.snumbers, h.trans_id AS id | . qq|FROM history_erp h | . qq|LEFT JOIN employee emp ON (emp.id = h.employee_id) | . - qq|WHERE trans_id = | . $trans_id - . $restriction . qq| | - . $order; + qq|WHERE (trans_id = | . $trans_id . qq|) $restriction | . + $order; my $sth = $dbh->prepare($query) || $self->dberror($query); diff --git a/js/show_am_history.js b/js/show_am_history.js deleted file mode 100644 index ff1db6c81..000000000 --- a/js/show_am_history.js +++ /dev/null @@ -1,11 +0,0 @@ -function set_history_uri() { - document.location.href = "am.pl?" + - "action=show_am_history&" + - "longdescription=" + "&" + - "einschraenkungen=" + document.getElementById("einschraenkungen").value + "&" + - "fromdate=" + document.getElementById("fromdate_hidden").value + "&" + - "todate=" + document.getElementById("todate_hidden").value + "&" + - "what2search=" + document.getElementById("what2search").value + "&" + - "searchid=" + document.getElementById("searchid").value + "&" + - "mitarbeiter=" + document.getElementById("mitarbeiter_hidden").value + "&"; -} diff --git a/locale/de/am b/locale/de/am index 3aaf11513..ebce22afb 100644 --- a/locale/de/am +++ b/locale/de/am @@ -474,6 +474,7 @@ $self->{subs} = { 'neue_ware' => 'new_part', 'speichern' => 'save', 'als_neu_speichern' => 'save_as_new', + 'abschicken' => 'submit', }; 1; diff --git a/templates/webpages/common/search_history_de.html b/templates/webpages/common/search_history_de.html index 8f8b130af..a8f58e932 100644 --- a/templates/webpages/common/search_history_de.html +++ b/templates/webpages/common/search_history_de.html @@ -2,9 +2,8 @@ - - + @@ -55,14 +54,14 @@ var jscalender = "" + "" + "
Zeitraum: 
von: " - + "" + + "" + "" + " bis: " - + "" + + "" + "
"; var mitarbeiter = "" + "" - + "" + + "" + "
Mitarbeiter: 
"; var tempString = ""; @@ -172,11 +171,8 @@ - - - - - + + diff --git a/templates/webpages/common/search_history_master.html b/templates/webpages/common/search_history_master.html index 2bcd7601c..e2a9ba779 100644 --- a/templates/webpages/common/search_history_master.html +++ b/templates/webpages/common/search_history_master.html @@ -2,9 +2,8 @@ - - + @@ -55,14 +54,14 @@ var jscalender = "" + "" + "
Period
from (time): " - + "" + + "" + "" + " to (time): " - + "" + + "" + "
"; var mitarbeiter = "" + "" - + "" + + "" + "
Mitarbeiter: 
"; var tempString = ""; @@ -172,11 +171,8 @@ - - - - - + +