+
+ my $processingreturn = $input->param('processingreturn');
+
+ if ( $processingreturn eq '*' ) {
+ if ( $branch ne '*' ) {
+ # only do something for $processingreturn eq '*' if branch-specific
+ Koha::CirculationRules->set_rules(
+ {
+ branchcode => $branch,
+ rules => {
+ processingreturn => undef
+ }
+ }
+ );
+ }
+ } else {
+ Koha::CirculationRules->set_rules(
+ {
+ branchcode => $branch,
+ rules => {
+ processingreturn => $processingreturn
+ }
+ }
+ );
+ }