[Koha-bugs] [Bug 10789] Excessive and often incorrect use of finish in C4::Acquisitions
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Feb 18 16:32:34 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10789
--- Comment #14 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 25380
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=25380&action=edit
Bug 10789 Remove unnecessary calls to finish in C4::Acquisitions
C4::Acquisitions contained a number of unnecessary calls to
finish. Removed these and the associated variables introduced to
cache query results between fetch and the return
Where finish was the end of the routine I have added an
explicit return to document that no data is returned.
A number of places made query calls and fetched a single
row. Such a case could require an explicit finish.
These assume that they are looking up with a unique key.
To remove assumptions and isolate the code from future changes
I've switched these to fetching all and returning the
first row. I have commented these cases.
For fuller explanation see perldoc DBI
What I tested:
Edit existing basket, chnged name
Modify order line, change vendor price
Create new basket and add order
Delet this order
Delte this basket
New Basket, new order, user added, user removed
Add contract to vendor, change details, delete contract
Search order biblio
Create basket group, add basket to group, remove basket from group
Delete basket group
Receive order
Everything behaved as I expected
Signed-off-by: Marc Veron <veron at veron.ch>
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list