[Koha-bugs] [Bug 8326] Allow patron attributes to be made repeatable after initial creation

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Oct 4 00:55:29 CEST 2020


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

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Signoff               |Failed QA
                 CC|                            |david at davidnind.com

--- Comment #3 from David Nind <david at davidnind.com> ---
Hi Jonathan.

For step 3 I can remove the repeatable flag, but get this error trace message
(I also get this when the attributes were setup before applying the patch where
there are patrons using it):

The property 'repeatable' cannot be changed, some patron attributes are using
it that way. at /usr/share/perl5/Exception/Class/Base.pm line 88

    in Exception::Class::Base::throw at
/usr/share/perl5/Exception/Class/Base.pm line 88

       85: 
       86:     $proto->rethrow if ref $proto;
       87: 
       88:     die $proto->new(@_);
       89: }
       90: 
       91: sub rethrow {

    Show function arguments
    in Koha::Patron::Attribute::Type::check_repeatables at
/kohadevbox/koha/Koha/Patron/Attribute/Type.pm line 85

       82:         }
       83:     )->count;
       84: 
       85:    
Koha::Exceptions::Patron::Attribute::Type::CannotChangeProperty->throw(
       86:         property => 'repeatable' )
       87:       if $count;

For step 5 I can remove the unique flag.

David

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list