Skip to content

Commit

Permalink
Merge pull request #2570 from sul-dlss/2569-needed-date-default
Browse files Browse the repository at this point in the history
Set a reasonable needed date for illiad requests if none is provided.
  • Loading branch information
jcoyne authored Sep 18, 2024
2 parents 60de876 + 49149ec commit dec71b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/patron_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def illiad_request_params(item)
SpecIns: 'SearchWorks Request',
LoanTitle: bib_data.title,
LoanAuthor: bib_data.author,
NotWantedAfter: needed_date.strftime('%Y-%m-%d'),
NotWantedAfter: (needed_date || 1.year.from_now).strftime('%Y-%m-%d'),
ItemInfo4: destination_library_code
})
end
Expand Down

0 comments on commit dec71b9

Please sign in to comment.