Bug 10698

Summary: DeleteTransfer in C4::Circulation.pm needs return value
Product: Koha Reporter: kenza <kenza.zaki>
Component: Architecture, internals, and plumbingAssignee: kenza <kenza.zaki>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: bgkriegel, chris, gmcharlt, kenza.zaki
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 10681, 10692    
Bug Blocks:    
Attachments: Bug 10698: DeleteTransfer in C4::Circulation.pm needs return value
Bug 10698: DeleteTransfer in C4::Circulation.pm needs return value
Bug 10698: DeleteTransfer in C4::Circulation.pm needs return value

Description kenza 2013-08-08 08:36:52 UTC

    
Comment 1 kenza 2013-08-08 08:44:43 UTC Comment hidden (obsolete)
Comment 2 Chris Cormack 2013-08-08 22:35:23 UTC
I cant get this to apply, even after apply 10692
Comment 3 kenza 2013-08-12 07:46:36 UTC
(In reply to Chris Cormack from comment #2)
> I cant get this to apply, even after apply 10692

Sorry i forgot to mention it, but this patch also needs to apply 10681.
Comment 4 Bernardo Gonzalez Kriegel 2013-08-25 22:44:27 UTC Comment hidden (obsolete)
Comment 5 Chris Cormack 2013-08-27 09:49:50 UTC
Created attachment 20648 [details] [review]
Bug 10698: DeleteTransfer in C4::Circulation.pm needs return value

This patch adds return values to DeleteTransfer:
Undef if no parameters are given
1 if a Transfer is deleted
0E0 if a wrong parameter is given

It also fixes some unit tests in t/db_dependent/Circulation_transfers.t

To test:
prove t/db_dependent/Circulation_transfers.t
t/db_dependent/Circulation_transfers.t .. ok
All tests successful.
Files=1, Tests=14, 20 wallclock secs ( 0.03 usr  0.00 sys +  0.39 cusr  0.02 csys =  0.44 CPU)
Result: PASS

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Comment: Applied 10681 and 10692 before 10698
Run prove t/db_dependent/Circulation_transfers.t without errors
No koha-qa errors on all 3 patches

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Comment 6 Galen Charlton 2013-10-09 03:59:39 UTC
Pushed to master.  Thanks, Kenza!