From: G. Richardson Date: Sun, 13 Nov 2016 10:28:02 +0000 (+0100) Subject: Part Controller - id -> part.id X-Git-Tag: release-3.5.4~1884 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7bbdbf2bd966e6317cff568ac6f60936b51d8df7;p=kivitendo-erp.git Part Controller - id -> part.id --- diff --git a/SL/Controller/TopQuickSearch/Article.pm b/SL/Controller/TopQuickSearch/Article.pm index f3fc1acbe..ba051d280 100644 --- a/SL/Controller/TopQuickSearch/Article.pm +++ b/SL/Controller/TopQuickSearch/Article.pm @@ -66,7 +66,7 @@ sub redirect_to_part { SL::Controller::Base->new->url_for( controller => 'controller.pl', action => 'Part/edit', - id => $term, + 'part.id' => $term, ); } diff --git a/SL/Presenter/Part.pm b/SL/Presenter/Part.pm index f634b3fcd..1f96cbe7b 100644 --- a/SL/Presenter/Part.pm +++ b/SL/Presenter/Part.pm @@ -17,7 +17,7 @@ sub part { croak "Unknown display type '$params{display}'" unless $params{display} =~ m/^(?:inline|table-cell)$/; my $text = join '', ( - $params{no_link} ? '' : '', + $params{no_link} ? '' : '', $self->escape($part->partnumber), $params{no_link} ? '' : '', ); diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 08dc40db0..2e14fbdd8 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -590,7 +590,7 @@ sub generate_report { $soldtotal = 0 if ($form->{sold}); } - my $edit_link = build_std_url('script=controller.pl', 'action=Part/edit', 'id=' . E($ref->{id}), 'callback'); + my $edit_link = build_std_url('script=controller.pl', 'action=Part/edit', 'part.id=' . E($ref->{id}), 'callback'); $row->{partnumber}->{link} = $edit_link; $row->{description}->{link} = $edit_link;