Bugfix bei Artikelstammdaten: Beim erneuten Aufrufen des Sprachenfensters wurden...
[kivitendo-erp.git] / am.pl
diff --git a/am.pl b/am.pl
index ac0a98a..d35b4a9 100755 (executable)
--- a/am.pl
+++ b/am.pl
@@ -47,7 +47,7 @@ $| = 1;
 use SL::LXDebug;
 $lxdebug = LXDebug->new();
 
-use CGI;
+use CGI qw( -no_xhtml);
 use SL::Form;
 use SL::Locale;
 
@@ -64,6 +64,11 @@ if (defined($latex) && !defined($latex_templates)) {
 $form = new Form;
 $cgi = new CGI('');
 
+# this prevents most of the tabindexes being created by CGI.
+# note: most. popup menus and selecttables will still have tabindexes
+# use common.pl's NTI function to get rid of those
+local $CGI::TABINDEX = 0;
+
 # name of this script
 $0 =~ tr/\\/\//;
 $pos = rindex $0, '/';