Lines 579-584
my $humanbranch = ( $branch ne '*' ? $branch : undef );
Link Here
|
579 |
my $all_rules = Koha::CirculationRules->search({ branchcode => $humanbranch }); |
579 |
my $all_rules = Koha::CirculationRules->search({ branchcode => $humanbranch }); |
580 |
my $definedbranch = $all_rules->count ? 1 : 0; |
580 |
my $definedbranch = $all_rules->count ? 1 : 0; |
581 |
|
581 |
|
|
|
582 |
my $rules = {}; |
582 |
while ( my $r = $all_rules->next ) { |
583 |
while ( my $r = $all_rules->next ) { |
583 |
$r = $r->unblessed; |
584 |
$r = $r->unblessed; |
584 |
$rules->{ $r->{categorycode} }->{ $r->{itemtype} }->{ $r->{rule_name} } = $r->{rule_value}; |
585 |
$rules->{ $r->{categorycode} }->{ $r->{itemtype} }->{ $r->{rule_name} } = $r->{rule_value}; |
585 |
- |
|
|