[Koha-patches] [PATCH 2/2] bug 3434 Fix SQL Syntax Error when setting claimdate
Colin Campbell
colin.campbell at ptfs-europe.com
Thu Jul 23 11:47:10 CEST 2009
On 07/22/2009 08:36 PM, Joe Atzberger wrote:
> Why not go farther and abstract the function so that it takes a status
> argument too? Have UpdateClaimdateIssues call it with 7. Otherwise you
> have to copy and paste this function for every status.
Actually it would be an error to call it with any value other than 7.
There is an updateClaim which also updates the date on a single row
where status already is 7. We could possibly remove some duplication
there. Looking through the code readability would be enhanced by naming
the magic numbers (like 7) which at present you have to go to the
template to find out what they mean.
Colin
--
Colin Campbell
Software Engineer, PTFS Europe Limited
Content Management and Library Solutions
+44 (0) 208 366 1295 (phone)
+44 (0) 7759 633626 (mobile)
colin.campbell at ptfs-europe.com
skype: colin_campbell2
http://www.ptfs-europe.com
More information about the Koha-patches
mailing list