[Koha-patches] [PATCH] bug 2707 - overdue rules not being deleted

Galen Charlton galen.charlton at liblime.com
Fri Oct 24 15:35:16 CEST 2008


Hi John,

On Fri, Oct 24, 2008 at 7:59 AM, John Beppu <john.beppu at liblime.com> wrote:
> I added some code to detect the rows which were blank, and
> I deleted them upon saving the form.
> ---
>  tools/overduerules.pl |   27 ++++++++++++++++++++++++++-
[snip]
> +my @category_codes  = qw(B HB IL J K L PT SC ST YA);

This is hardcoding the patron categories.  Patron categories are
actually coming from the database, and can be configured by the Koha
administrator, so you'll want to use a query like

SELECT description,categorycode FROM categories WHERE overduenoticerequired>0

as found in line 155 of the unpatched script.

Regards,

Galen
-- 
Galen Charlton
VP, Research & Development, LibLime
galen.charlton at liblime.com
p: 1-888-564-2457 x709
skype: gmcharlt



More information about the Koha-patches mailing list