Skip to content

Commit

Permalink
Set a reasonable needed date for illiad requests if none is provided. F…
Browse files Browse the repository at this point in the history
…ixes #2569
  • Loading branch information
cbeer committed Sep 18, 2024
1 parent e091585 commit 49149ec
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 49149ec

Please sign in to comment.