Bugzilla – Attachment 60010 Details for
Bug 18072
Add Koha objects for Branch Transfer Limits
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18072: Add deprecation warning to C4::Circulation Branch Transfer Limit functions
Bug-18072-Add-deprecation-warning-to-C4Circulation.patch (text/plain), 1.38 KB, created by
Josef Moravec
on 2017-02-08 14:12:16 UTC
(
hide
)
Description:
Bug 18072: Add deprecation warning to C4::Circulation Branch Transfer Limit functions
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2017-02-08 14:12:16 UTC
Size:
1.38 KB
patch
obsolete
>From 4a7674ccc050f0627c2f8a98e5b835e9f6fd99b3 Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@jns.fi> >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 <josef.moravec@gmail.com> >--- > C4/Circulation.pm | 9 +++++++++ > 1 file changed, 9 insertions(+) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index e2cd626..c2ca411 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -3572,6 +3572,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 { >@@ -3600,6 +3603,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 { >@@ -3621,6 +3626,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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18072
:
59979
|
59980
|
59981
|
59982
|
60009
|
60010
|
60011
|
60116
|
60117
|
60782
|
60783
|
60784
|
63683
|
63684
|
63685
|
63686
|
63687
|
66724
|
67049
|
67050
|
67051
|
67052
|
67053
|
67054
|
67209
|
76282
|
76283
|
76284
|
76285
|
76286
|
76287
|
76288
|
76292
|
76293
|
76294
|
76295
|
76296
|
76297
|
76298