LP1907866 Bootstrap Opac: fix adding basket to existing List
authorGarry Collum <gcollum@gmail.com>
Mon, 14 Dec 2020 20:18:15 +0000 (15:18 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 8 Feb 2021 16:03:02 +0000 (11:03 -0500)
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 <gcollum@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>

Open-ILS/src/templates-bootstrap/opac/myopac/lists.tt2

index a4e8d7e..fea676d 100755 (executable)
@@ -82,7 +82,7 @@
         </table>
     </form>
 
-      [% IF CGI.param('from_basket');  %]
+      [% IF (CGI.param('from_basket') && ctx.mylist.size)  %]
     <h3>[% l("... from basket") %]</h3>
     [% INCLUDE "opac/parts/anon_list.tt2" %]
     [% ELSE %]