Bug 15519: Warns when creating a basket
authorAleisha <aleishaamohia@hotmail.com>
Thu, 7 Jan 2016 21:39:33 +0000 (21:39 +0000)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 27 Jan 2016 05:51:00 +0000 (05:51 +0000)
To test:
1) Reproduce warn following steps above
2) Apply patch
3) Create a new basket and click Save. Do not add any items
4) Notice warn is gone
5) Click 'Delete this basket' and confirm that the validation message reads: "Are you sure you want to delete this basket?" Click cancel.
6) Add an order to the basket, then click 'Delete this basket'. Confirm the validation message gives more information and more delete options.

Followed test plan, works as expected.
Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt

index 06dc0c5..3b3e1b1 100644 (file)
                         <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
                         <h3>Confirm deletion</h3>
                     </div>
-                    [% UNLESS book_foot_loop.size > 0 %]
+                    [% UNLESS book_foot_loop %]
                         <div class="modal-body">
                            <p>Are you sure you want to delete this basket?</p>
                         </div>