From: Sven Schöling Date: Tue, 3 Nov 2009 10:32:55 +0000 (+0100) Subject: Einige strict Probleme mit vclimit=0 X-Git-Tag: release-2.6.1beta1~130 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=65df2ecc07d76c4714a5548ab6140852bc3abf07;p=kivitendo-erp.git Einige strict Probleme mit vclimit=0 --- diff --git a/SL/Menu.pm b/SL/Menu.pm index 9fcf15374..b9ee83da0 100644 --- a/SL/Menu.pm +++ b/SL/Menu.pm @@ -63,46 +63,50 @@ sub menuitem { my ($self, $myconfig, $form, $item) = @_; - my $module = $form->{script}; - my $action = "section_menu"; - my $target = ""; + my $module = $self->{$item}{module} || $form->{script}; + my $action = $self->{$item}{action} || "section_menu"; + my $target = $self->{$item}{target} || ""; - if ($self->{$item}{module}) { - $module = $self->{$item}{module}; - } - if ($self->{$item}{action}) { - $action = $self->{$item}{action}; - } - if ($self->{$item}{target}) { - $target = $self->{$item}{target}; - } + my $level = $form->escape($item); - my $level = $form->escape($item); + my $style = 'style="vertical-align:top"'; + my $target_token = ($target) + ? "target='$target'" + : ''; - my $str = qq|{$item}{href}|; +# @vars = qw(module target href); +# } map { delete $self->{$item}{$_} } @vars; # add other params foreach my $key (keys %{ $self->{$item} }) { - $str .= "&" . $form->escape($key, 1) . "="; + $href .= "&" . $form->escape($key, 1) . "="; my ($value, $conf) = split(/=/, $self->{$item}{$key}, 2); $value = $myconfig->{$value} . "/$conf" if ($conf); - $str .= $form->escape($value, 1); + $href .= $form->escape($value, 1); } - if ($target) { - $str .= qq| target=$target|; - } +# $str .= q|'|; +# +# if ($target) { +# $str .= qq| target=$target|; +# } - $str .= ">"; +# $str .= ">"; + + my $str = ""; $main::lxdebug->leave_sub(); diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 97f2dbad9..8f643e57e 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -1213,7 +1213,7 @@ sub search { $form->all_vc(\%myconfig, "vendor", "AP"); my $vendor; - if (@{ $form->{all_vendor} }) { + if (@{ $form->{all_vendor} || [] }) { map { $vendor .= "