https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12446

--- Comment #142 from Jonathan Druart <[email protected]> 
---
(In reply to Katrin Fischer from comment #138)
> (In reply to David Cook from comment #137)
> > (In reply to Jonathan Druart from comment #135)
> > > It's coming from the default value in DB, why did you default to 0? I 
> > > think
> > > it should default to 1.
> > 
> > I think defaulting to 1 would be logical, but that would also be a change in
> > system behaviour, since previously only patron categories C and P could be
> > guaranteed it seems. 
> > 
> > Maybe it's a case where the default should be 1, but we set it to 0 for
> > non-C and non-P patrons when doing a database update...
> 
> But that's exactly what this patch does:
> $dbh->do("UPDATE categories SET canbeguarantee = 1 WHERE category_type = 'P'
> OR category_type = 'C'");
> 
> Jonathan, do you have neither P nor C categories maybe? Maybe we should hide
> the option then intead.
> 
> Note: with the normal sample data that should be working.

On a new install (reset_all so sample data):
/cgi-bin/koha/members/moremember.pl?borrowernumber=5

With the patch:
Click "Add guarantee" and get 
"Cannot add patron
There are no patron categories defined. Please add a patron category."

Without the patch, on master:
Click "Add guarantee" and get the "add patron form"
/members/memberentry.pl?op=add&guarantor_id=5&category_type=C

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to