[Koha-bugs] [Bug 25601] New: Error when unsetting default checkout, hold and return policy for a specific library

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 26 06:35:15 CEST 2020


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

            Bug ID: 25601
           Summary: Error when unsetting default checkout, hold and return
                    policy for a specific library
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: System Administration
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: victor at tuxayo.net
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com

== Test plan ==
1. Home › Administration › Circulation and fine rules
2. "Select a library" → pick one in the list
3. "Default checkout, hold and return policy for XXXXXX" → unset
4. error


set_rule needs 'itemtype' to set 'returnbranch'! at
/kohadevbox/koha/admin/smart-rules.pl line 169.
at /usr/share/perl/5.28/Carp.pm line 289

1 in Carp::croak at /usr/share/perl/5.28/Carp.pm line 289

2 in Koha::CirculationRules::set_rule at
/kohadevbox/koha/Koha/CirculationRules.pm line 264
  261: 
  262:     # Enforce scope; a rule should be set for its defined scope, no
more, no less.
  263:     foreach my $scope_level ( qw( branchcode categorycode itemtype ) ) {
  264:         if ( grep /$scope_level/, @{ $kind_info->{scope} } ) {
  265:             croak "set_rule needs '$scope_level' to set
'$params->{rule_name}'!"
  266:                 unless exists $params->{$scope_level};
  267:         } else {


3 in Koha::CirculationRules::set_rules at
/kohadevbox/koha/Koha/CirculationRules.pm line 333
  330: 
  331:     my $rule_objects = [];
  332:     while ( my ( $rule_name, $rule_value ) = each %$rules ) {
  333:         my $rule_object = Koha::CirculationRules->set_rule(
  334:             {
  335:                 %set_params,
  336:                 rule_name    => $rule_name,


4 in (eval) at /kohadevbox/koha/admin/smart-rules.pl line 169
  166:                 }
  167:             }
  168:         );
  169:         Koha::CirculationRules->set_rules(
  170:             {
  171:                 branchcode   => $branch,
  172:                 rules        => {

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


More information about the Koha-bugs mailing list