Bug 35735 - Document fourth argument to CanBookBeRenewed
Summary: Document fourth argument to CanBookBeRenewed
Status: RESOLVED DUPLICATE of bug 25393
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low trivial (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords: Academy
Depends on:
Blocks:
 
Reported: 2024-01-09 09:59 UTC by Magnus Enger
Modified: 2024-01-11 08:05 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Enger 2024-01-09 09:59:11 UTC
In C4/Circulation.pm we have this: 

2920 =head2 CanBookBeRenewed
2921 
2922   ($ok,$error,$info) = &CanBookBeRenewed($patron, $issue, $override_limit);
2923 
2924 Find out whether a borrowed item may be renewed.
2925 
2926 C<$patron> is the patron who currently has the issue.
2927 
2928 C<$issue> is the checkout to renew.
2929 
2930 C<$override_limit>, if supplied with a true value, causes
2931 the limit on the number of times that the loan can be renewed
2932 (as controlled by the item type) to be ignored. Overriding also allows
2933 to renew sooner than "No renewal before" and to manually renew loans
2934 that are automatically renewed.
...
2946 sub CanBookBeRenewed {
2947     my ( $patron, $issue, $override_limit, $cron ) = @_;

The fourth argument, $cron, should be added to the example and to the list of arguments.
Comment 1 Jonathan Druart 2024-01-11 08:05:00 UTC
It's in master for months:

  commit 7d28dd0bdfc7557dce8fc3135bd525c74cfdd4a4
  Bug 25393: Update CanBookBeRenewed pod with bug 25758 changes

*** This bug has been marked as a duplicate of bug 25393 ***