[Koha-bugs] [Bug 7154] Group borrower attributes and link between patron category and attribute

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 4 16:24:03 CET 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7154

Owen Leonard <oleonard at myacpl.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
       Patch Status|Needs Signoff               |Failed QA

--- Comment #3 from Owen Leonard <oleonard at myacpl.org> 2011-11-04 15:24:03 UTC ---
I've done some tests on this and ran into a couple of problems. First, the
updatedatabase process got stuck in a loop. The update completed, but I kept
getting  I'm not sure why, but changing:

    $dbh->do(qq{ALTER TABLE borrower_attribute_types ADD COLUMN category_type
VARCHAR(1)  NOT NULL DEFAULT '' AFTER `display_checkout`});
    $dbh->do(qq{ALTER TABLE borrower_attribute_types ADD COLUMN class
VARCHAR(255)  NOT NULL DEFAULT '' AFTER `category_type`});

To:

    $dbh->do("ALTER TABLE borrower_attribute_types ADD COLUMN category_type
VARCHAR(1)  NOT NULL DEFAULT '' AFTER `display_checkout`;");
    $dbh->do("ALTER TABLE borrower_attribute_types ADD COLUMN class
VARCHAR(255)  NOT NULL DEFAULT '' AFTER `category_type`;");

...made the process complete properly.

The other problem I found was that setting a category type limit seems to block
that attribute from appearing for *any* patrons. I set an "Adult" limit on one
of my attributes and found that the attribute didn't appear on Adult or Child
entry forms.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the Koha-bugs mailing list