);
}
- if ($date and $org and !$ctx->{cs_times}{$date}) {
- $ctx->{cs_times}{$date} = $circ->request(
+ if ($date and $org and !$ctx->{cs_times}{$org}{$date}) {
+ $ctx->{cs_times}{$org}{$date} = $circ->request(
'open-ils.curbside.times_for_date.atomic',
$e->authtoken, $date, $org
)->gather(1);
for my $cs (@{$holds_object->{curbsides}}) {
if ($cs->slot) {
my $dt = DateTime::Format::ISO8601->new->parse_datetime(clean_ISO8601($cs->slot))->strftime('%F');
- $ctx->{cs_times}{$dt} = $U->simplereq(
+ $ctx->{cs_times}{$cs->org}{$dt} = $U->simplereq(
'open-ils.curbside', 'open-ils.curbside.times_for_date.atomic',
$e->authtoken, $dt, $cs->org
);
[% IF appointment || cs_date; # checking times %]
[% current_date = cs_date %]
[% IF date_started_null && no_patron_input %]
- [% ELSIF appointment || ctx.cs_times.$current_date.size; # show a select %]
+ [% ELSIF appointment || ctx.cs_times.$lib.$current_date.size; # show a select %]
<select name="cs_time" [% IF disable_me || no_patron_input %]disabled="disabled"[% END %]>
[% found_time = 0 %]
- [% FOR t IN ctx.cs_times.$current_date %]
+ [% FOR t IN ctx.cs_times.$lib.$current_date %]
<option value="[% t.0 | html %]"
[% IF cs_time == t.0; found_time=1 %] selected="selected"[% END %]
[% IF t.1 <= 0 && cs_time != t.0 %] disabled="disabled"[% END %]>