From 7bbdbf2bd966e6317cff568ac6f60936b51d8df7 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Sun, 13 Nov 2016 11:28:02 +0100 Subject: [PATCH] Part Controller - id -> part.id --- SL/Controller/TopQuickSearch/Article.pm | 2 +- SL/Presenter/Part.pm | 2 +- bin/mozilla/ic.pl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.20.1