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

(-)a/C4/Reserves.pm (+4 lines)
Lines 908-913 sub ModReserve { Link Here
908
908
909
    my $rank = $params->{'rank'};
909
    my $rank = $params->{'rank'};
910
    my $reserve_id = $params->{'reserve_id'};
910
    my $reserve_id = $params->{'reserve_id'};
911
    my $reservedate = $params->{reservedate} || undef;
912
    my $expirationdate = $params->{expirationdate} || undef;
911
    my $branchcode = $params->{'branchcode'};
913
    my $branchcode = $params->{'branchcode'};
912
    my $itemnumber = $params->{'itemnumber'};
914
    my $itemnumber = $params->{'itemnumber'};
913
    my $suspend_until = $params->{'suspend_until'};
915
    my $suspend_until = $params->{'suspend_until'};
Lines 939-944 sub ModReserve { Link Here
939
        $hold->set(
941
        $hold->set(
940
            {
942
            {
941
                priority    => $rank,
943
                priority    => $rank,
944
                reservedate => $reservedate,
945
                expirationdate => $expirationdate,
942
                branchcode  => $branchcode,
946
                branchcode  => $branchcode,
943
                itemnumber  => $itemnumber,
947
                itemnumber  => $itemnumber,
944
                found       => undef,
948
                found       => undef,
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc (-2 / +2 lines)
Lines 106-113 Link Here
106
            </td>
106
            </td>
107
107
108
            <td>[% hold.notes | html %]</td>
108
            <td>[% hold.notes | html %]</td>
109
            <td>[% hold.date | html %]</td>
109
            <td><input type="date" value="[% hold.date | html %]" required name="reservedate"></td>
110
            <td>[% hold.expirationdate | html %]</td>
110
            <td><input type="date" value="[% hold.expirationdate | html %]" name="expirationdate"></td>
111
111
112
            <td>
112
            <td>
113
                [% IF ( hold.found ) %]
113
                [% IF ( hold.found ) %]
(-)a/reserve/modrequest.pl (+4 lines)
Lines 44-49 my @reserve_id = $query->multi_param('reserve_id'); Link Here
44
my @rank = $query->multi_param('rank-request');
44
my @rank = $query->multi_param('rank-request');
45
my @biblionumber = $query->multi_param('biblionumber');
45
my @biblionumber = $query->multi_param('biblionumber');
46
my @borrower = $query->multi_param('borrowernumber');
46
my @borrower = $query->multi_param('borrowernumber');
47
my @reservedates = $query->multi_param('reservedate');
48
my @expirationdates = $query->multi_param('expirationdate');
47
my @branch = $query->multi_param('pickup');
49
my @branch = $query->multi_param('pickup');
48
my @itemnumber = $query->multi_param('itemnumber');
50
my @itemnumber = $query->multi_param('itemnumber');
49
my @suspend_until=$query->multi_param('suspend_until');
51
my @suspend_until=$query->multi_param('suspend_until');
Lines 70-75 else { Link Here
70
        ModReserve({
72
        ModReserve({
71
            rank => $rank[$i],
73
            rank => $rank[$i],
72
            reserve_id => $reserve_id[$i],
74
            reserve_id => $reserve_id[$i],
75
            reservedate => $reservedates[$i],
76
            expirationdate => $expirationdates[$i],
73
            branchcode => $branch[$i],
77
            branchcode => $branch[$i],
74
            itemnumber => $itemnumber[$i],
78
            itemnumber => $itemnumber[$i],
75
            suspend_until => $suspend_until[$i]
79
            suspend_until => $suspend_until[$i]
(-)a/reserve/request.pl (-4 / +2 lines)
Lines 599-607 foreach my $biblionumber (@biblionumbers) { Link Here
599
            }
599
            }
600
        }
600
        }
601
601
602
        $reserve{'expirationdate'} = output_pref( { dt => dt_from_string( $res->expirationdate ), dateonly => 1 } )
602
        $reserve{'expirationdate'} = $res->expirationdate;
603
          unless ( !defined( $res->expirationdate ) || $res->expirationdate eq '0000-00-00' );
603
        $reserve{'date'}           = $res->reservedate;
604
        $reserve{'date'}           = output_pref( { dt => dt_from_string( $res->reservedate ), dateonly => 1 } );
605
        $reserve{'borrowernumber'} = $res->borrowernumber();
604
        $reserve{'borrowernumber'} = $res->borrowernumber();
606
        $reserve{'biblionumber'}   = $res->biblionumber();
605
        $reserve{'biblionumber'}   = $res->biblionumber();
607
        $reserve{'patron'}         = $res->borrower;
606
        $reserve{'patron'}         = $res->borrower;
608
- 

Return to bug 22922