From 9ec91232965f6cbe39cc6de68fc090c32d208f71 Mon Sep 17 00:00:00 2001 From: Lari Taskula Date: Tue, 7 Feb 2017 16:33:40 +0200 Subject: [PATCH] Bug 18072: Add deprecation warning to C4::Circulation Branch Transfer Limit functions Signed-off-by: Josef Moravec --- C4/Circulation.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index a439021..0a293e3 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -3586,6 +3586,9 @@ return $exist; Code is either an itemtype or collection doe depending on the pref BranchTransferLimitsType +Deprecated in favor of Koha::Item::Transfer::Limits->find/search and +Koha::Item->can_be_transferred. + =cut sub IsBranchTransferAllowed { @@ -3614,6 +3617,8 @@ sub IsBranchTransferAllowed { $code is either itemtype or collection code depending on what the pref BranchTransferLimitsType is set to. +Deprecated in favor of Koha::Item::Transfer::Limit->new. + =cut sub CreateBranchTransferLimit { @@ -3635,6 +3640,10 @@ Deletes all the library transfer limits for one library. Returns the number of limits deleted, 0e0 if no limits were deleted, or undef if no arguments are supplied. +Deprecated in favor of Koha::Item::Transfer::Limits->search({ + fromBranch => $fromBranch + })->delete. + =cut sub DeleteBranchTransferLimits { -- 2.1.4