From: Garry Collum Date: Mon, 14 Dec 2020 20:18:15 +0000 (-0500) Subject: LP1907866 Bootstrap Opac: fix adding basket to existing List X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=80c089d77eb8760a2cb56bae91a9bc11ed8e0a36;p=evergreen%2Fpines.git LP1907866 Bootstrap Opac: fix adding basket to existing List Fixes the issue with the screen not showing lists after adding items to an existing list from a basket. To test: Create a list in the Bootstrap Opac. Add some items to a basket. Select Add Basket to Saved List, and send the items to the list that was just created. Notice on the list page after the items have been added that you can no longer see any existing list names. The screen displays '...From Basket' Apply the patch. Add some more items from a basket into the list. The existing list names are displayed after the items are sent to the existing list. Signed-off-by: Garry Collum Signed-off-by: Terran McCanna Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates-bootstrap/opac/myopac/lists.tt2 b/Open-ILS/src/templates-bootstrap/opac/myopac/lists.tt2 index a4e8d7ea29..fea676d60d 100755 --- a/Open-ILS/src/templates-bootstrap/opac/myopac/lists.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/myopac/lists.tt2 @@ -82,7 +82,7 @@ - [% IF CGI.param('from_basket'); %] + [% IF (CGI.param('from_basket') && ctx.mylist.size) %]

[% l("... from basket") %]

[% INCLUDE "opac/parts/anon_list.tt2" %] [% ELSE %]