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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc (-2 / +2 lines)
Lines 108-119 Link Here
108
            <td>[% hold.notes | html %]</td>
108
            <td>[% hold.notes | html %]</td>
109
            <td>
109
            <td>
110
                [% IF Koha.Preference('AllowHoldDateInFuture') %]
110
                [% IF Koha.Preference('AllowHoldDateInFuture') %]
111
                    <input type="date" value="[% hold.date | html %]" required name="reservedate">
111
                    <input type="text" class="datepicker" value="[% hold.date | $KohaDates %]" required name="reservedate">
112
                [% ELSE %]
112
                [% ELSE %]
113
                    [% hold.date | $KohaDates %]
113
                    [% hold.date | $KohaDates %]
114
                [% END %]
114
                [% END %]
115
            </td>
115
            </td>
116
            <td><input type="date" value="[% hold.expirationdate | html %]" name="expirationdate"></td>
116
            <td><input type="text" class="datepicker" value="[% hold.expirationdate | $KohaDates %]" name="expirationdate"></td>
117
117
118
            <td>
118
            <td>
119
                [% IF ( hold.found ) %]
119
                [% IF ( hold.found ) %]
(-)a/reserve/modrequest.pl (-3 / +3 lines)
Lines 27-32 use CGI qw ( -utf8 ); Link Here
27
use C4::Output;
27
use C4::Output;
28
use C4::Reserves;
28
use C4::Reserves;
29
use C4::Auth;
29
use C4::Auth;
30
use Koha::DateUtils qw( dt_from_string );
30
31
31
my $query = new CGI;
32
my $query = new CGI;
32
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
33
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
Lines 72-84 else { Link Here
72
        my $params = {
73
        my $params = {
73
            rank => $rank[$i],
74
            rank => $rank[$i],
74
            reserve_id => $reserve_id[$i],
75
            reserve_id => $reserve_id[$i],
75
            expirationdate => $expirationdates[$i],
76
            expirationdate => $expirationdates[$i] ? dt_from_string($expirationdates[$i]) : undef,
76
            branchcode => $branch[$i],
77
            branchcode => $branch[$i],
77
            itemnumber => $itemnumber[$i],
78
            itemnumber => $itemnumber[$i],
78
            suspend_until => $suspend_until[$i]
79
            suspend_until => $suspend_until[$i]
79
        };
80
        };
80
        if (C4::Context->preference('AllowHoldDateInFuture')) {
81
        if (C4::Context->preference('AllowHoldDateInFuture')) {
81
            $params->{reservedate} = $reservedates[$i];
82
            $params->{reservedate} = $reservedates[$i] ? dt_from_string($reservedates[$i]) : undef;
82
        }
83
        }
83
84
84
        ModReserve($params);
85
        ModReserve($params);
85
- 

Return to bug 22922