From 1a2e52f494918cb8ad4a529ed9d099281501f179 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 29 Aug 2017 21:21:00 +0000 Subject: [PATCH] Bug 19180: [FOLLOW-UP] Renaming all instances of 'name' variable to 'booksellername' ... when referring to the name of the vendor. To test: 1) Confirm vendor shows on webpage title (tab name) 2) Confirm vendor shows in breadcrumbs 3) Confirm vendor shows in heading when viewing basket ('Basket x (1) for vendor') Sponsored-by: Catalyst IT Signed-off-by: Mark Tompsett Signed-off-by: Caroline Cyr La Rose Signed-off-by: Jonathan Druart Signed-off-by: Jonathan Druart (cherry picked from commit 06b602b0976e2a8d53ff31f95a2213cbeb98e9cb) Signed-off-by: Fridolin Somers --- acqui/basket.pl | 8 ++++---- .../intranet-tmpl/prog/en/modules/acqui/basket.tt | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/acqui/basket.pl b/acqui/basket.pl index d51ba07980..2b123d8c1d 100755 --- a/acqui/basket.pl +++ b/acqui/basket.pl @@ -100,7 +100,7 @@ unless (CanUserManageBasket($loggedinuser, $basket, $userflags)) { basketno => $basketno, basketname => $basket->{basketname}, booksellerid => $booksellerid, - name => $bookseller->name, + booksellername => $bookseller->name, ); output_html_with_http_headers $query, $cookie, $template->output; exit; @@ -159,7 +159,7 @@ if ( $op eq 'delete_confirm' ) { DelBasket($basketno,); $template->param( delete_confirmed => 1, - name => $bookseller->name, + booksellername => $bookseller->name, booksellerid => $booksellerid, ); } elsif ( !$bookseller ) { @@ -214,7 +214,7 @@ if ( $op eq 'delete_confirm' ) { $template->param( confirm_close => "1", booksellerid => $booksellerid, - name => $bookseller->name, + booksellername => $bookseller->name, basketno => $basket->{'basketno'}, basketname => $basket->{'basketname'}, basketgroupname => $basket->{'basketname'}, @@ -405,7 +405,7 @@ if ( $op eq 'list' ) { billingplace => $basket->{billingplace}, active => $bookseller->active, booksellerid => $bookseller->id, - name => $bookseller->name, + booksellername => $bookseller->name, books_loop => \@books_loop, book_foot_loop => \@book_foot_loop, cancelledorders_loop => \@cancelledorders_loop, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index fecb0880e7..2187416e46 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -4,7 +4,7 @@ [% USE AuthorisedValues %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Acquisitions › [% UNLESS ( basketno ) %]New [% END %]Basket [% basketname|html %] ([% basketno |html %]) for [% name|html %] +Koha › Acquisitions › [% UNLESS ( basketno ) %]New [% END %]Basket [% basketname|html %] ([% basketno |html %]) for [% booksellername|html %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'datatables.inc' %] @@ -170,8 +170,8 @@
@@ -308,7 +308,7 @@
Click here to go back to booksellers page [% ELSE %] - Show baskets for vendor [% name | html %] Show all active baskets + Show baskets for vendor [% booksellername | html %] Show all active baskets [% END %] [% ELSE %] @@ -328,7 +328,7 @@ [% END %] [% END %] -

[% UNLESS ( basketno ) %]New [% END %]Basket [% basketname|html %] ([% basketno |html %]) for [% name|html %]

+

[% UNLESS ( basketno ) %]New [% END %]Basket [% basketname|html %] ([% basketno |html %]) for [% booksellername|html %]

[% IF ( basketno ) %]
-- 2.39.5