Bug 10630

Summary: DelBookseller's return value needs to be more explicit in C4::Bookseller.pm
Product: Koha Reporter: kenza <kenza.zaki>
Component: AcquisitionsAssignee: kenza <kenza.zaki>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: gmcharlt, kenza.zaki
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 10528    
Bug Blocks:    
Attachments: Bug 10630: DelBookseller's always returns undef in C4::Bookseller.pm
Bug 10630: DelBookseller's always returns undef in C4::Bookseller.pm
Bug 10630: DelBookseller's always returns undef in C4::Bookseller.pm
[PASSED QA] Bug 10630: DelBookseller's always returns undef in C4::Bookseller.pm

Description kenza 2013-07-23 15:05:03 UTC
DelBookSeller always returns undef, even if nothing has been deleted.
Comment 1 kenza 2013-07-24 13:42:40 UTC Comment hidden (obsolete)
Comment 2 kenza 2013-07-25 07:43:49 UTC Comment hidden (obsolete)
Comment 3 Chris Cormack 2013-08-08 23:27:28 UTC Comment hidden (obsolete)
Comment 4 Katrin Fischer 2013-08-25 11:59:02 UTC
Created attachment 20586 [details] [review]
[PASSED QA] Bug 10630: DelBookseller's always returns undef in C4::Bookseller.pm

This patch makes DelBookseller returns the number of supplier it has deleted
or undef if nothing has been deleted.
It also fixes a test which doesn't pass before in t/db_dependent/Bookseller.t

To test:
prove t/db_dependent/Bookseller.t
t/db_dependent/Bookseller.t .. 1/54
All tests successful.
Files=1, Tests=54,  1 wallclock secs ( 0.02 usr  0.00 sys +  0.48 cusr  0.02 csys =  0.52 CPU)
Result: PASS

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Logical change and makes another test pass.
Comment 5 Katrin Fischer 2013-08-25 11:59:24 UTC
Tested with patch for 10528 applied.
Comment 6 Galen Charlton 2013-09-08 20:34:09 UTC
Pushed to master.  Thanks, Kenza!