View | Details | Raw Unified | Return to bug 40517
Collapse All | Expand All

(-)a/C4/Reserves.pm (-2 lines)
Lines 194-200 sub AddReserve { Link Here
194
    my $itemtype               = $params->{itemtype};
194
    my $itemtype               = $params->{itemtype};
195
    my $non_priority           = $params->{non_priority};
195
    my $non_priority           = $params->{non_priority};
196
    my $item_group_id          = $params->{item_group_id};
196
    my $item_group_id          = $params->{item_group_id};
197
    my $hold_group_id          = $params->{hold_group_id};
198
197
199
    $resdate ||= dt_from_string;
198
    $resdate ||= dt_from_string;
200
199
Lines 257-263 sub AddReserve { Link Here
257
            itemtype               => $itemtype,
256
            itemtype               => $itemtype,
258
            item_level_hold        => $checkitem    ? 1 : 0,
257
            item_level_hold        => $checkitem    ? 1 : 0,
259
            non_priority           => $non_priority ? 1 : 0,
258
            non_priority           => $non_priority ? 1 : 0,
260
            hold_group_id          => $hold_group_id,
261
        }
259
        }
262
    )->store();
260
    )->store();
263
    $hold->set_waiting() if $found && $found eq 'W';
261
    $hold->set_waiting() if $found && $found eq 'W';
(-)a/reserve/placerequest.pl (-5 lines)
Lines 52-58 my $non_priority = $input->param('non_priority'); Link Here
52
my $op               = $input->param('op') || q{};
52
my $op               = $input->param('op') || q{};
53
my $multi_holds      = $input->param('multi_holds');
53
my $multi_holds      = $input->param('multi_holds');
54
my $hold_group_param = $input->param('hold_group') || undef;
54
my $hold_group_param = $input->param('hold_group') || undef;
55
my $hold_group;
56
55
57
my $patron = Koha::Patrons->find($borrowernumber);
56
my $patron = Koha::Patrons->find($borrowernumber);
58
57
Lines 107-113 if ( $op eq 'cud-placerequest' && $patron ) { Link Here
107
                                found            => undef,
106
                                found            => undef,
108
                                itemtype         => $itemtype,
107
                                itemtype         => $itemtype,
109
                                non_priority     => $non_priority,
108
                                non_priority     => $non_priority,
110
                                hold_group_id    => $hold_group ? $hold_group->id : undef,
111
                            }
109
                            }
112
                        );
110
                        );
113
111
Lines 137-143 if ( $op eq 'cud-placerequest' && $patron ) { Link Here
137
                        found            => undef,
135
                        found            => undef,
138
                        itemtype         => $itemtype,
136
                        itemtype         => $itemtype,
139
                        non_priority     => $non_priority,
137
                        non_priority     => $non_priority,
140
                        hold_group_id    => $hold_group ? $hold_group->id : undef,
141
                    }
138
                    }
142
                );
139
                );
143
                push @successful_hold_ids, $reserve_id;
140
                push @successful_hold_ids, $reserve_id;
Lines 162-168 if ( $op eq 'cud-placerequest' && $patron ) { Link Here
162
                            itemtype         => $itemtype,
159
                            itemtype         => $itemtype,
163
                            non_priority     => $non_priority,
160
                            non_priority     => $non_priority,
164
                            item_group_id    => $item_group_id,
161
                            item_group_id    => $item_group_id,
165
                            hold_group_id    => $hold_group ? $hold_group->id : undef,
166
                        }
162
                        }
167
                    );
163
                    );
168
                    push @successful_hold_ids, $reserve_id;
164
                    push @successful_hold_ids, $reserve_id;
169
- 

Return to bug 40517