Bug 15519

Summary: Warns when creating a basket
Product: Koha Reporter: Aleisha Amohia <aleisha>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: brendan, veron
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 15519: Warns when creating a basket
Bug 15519: Warns when creating a basket
Bug 15519: Warns when creating a basket

Description Aleisha Amohia 2016-01-07 21:39:05 UTC
To reproduce:
1) Go to acquisitions
2) Go to a vendor
3) Create a new basket and click save
4) See warn in intranet error log: basket.pl: Argument "" isn't numeric in numeric le (<=) at /home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt line 207.
Comment 1 Aleisha Amohia 2016-01-07 21:44:06 UTC Comment hidden (obsolete)
Comment 2 Marc Véron 2016-01-08 14:03:42 UTC Comment hidden (obsolete)
Comment 3 Jonathan Druart 2016-01-11 15:45:46 UTC
Created attachment 46488 [details] [review]
Bug 15519: Warns when creating a basket

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>