Bugzilla – Attachment 57230 Details for
Bug 17552
Koha::Objects->reset does no longer allow chaining
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 17552: Revert "Bug 17091: Remove explicit declaration of Koha::Objects->reset"
PASSED-QA-Bug-17552-Revert-Bug-17091-Remove-explic.patch (text/plain), 1.03 KB, created by
Katrin Fischer
on 2016-11-06 10:33:18 UTC
(
hide
)
Description:
[PASSED QA] Bug 17552: Revert "Bug 17091: Remove explicit declaration of Koha::Objects->reset"
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2016-11-06 10:33:18 UTC
Size:
1.03 KB
patch
obsolete
>From bd6334c66694d5dbf98d2e5139a379edd20f2788 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 4 Nov 2016 13:47:21 +0000 >Subject: [PATCH] [PASSED QA] Bug 17552: Revert "Bug 17091: Remove explicit > declaration of Koha::Objects->reset" > >This reverts commit c253af2e519570c4024891dc4d1e81743a2c5fc2. > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> > >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >--- > Koha/Objects.pm | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > >diff --git a/Koha/Objects.pm b/Koha/Objects.pm >index 176821a..da2f2c9 100644 >--- a/Koha/Objects.pm >+++ b/Koha/Objects.pm >@@ -181,6 +181,23 @@ sub next { > return $object; > } > >+=head3 Koha::Objects->reset(); >+ >+Koha::Objects->reset(); >+ >+resets iteration so the next call to next() will start agein >+with the first object in a set. >+ >+=cut >+ >+sub reset { >+ my ( $self ) = @_; >+ >+ $self->_resultset()->reset(); >+ >+ return $self; >+} >+ > =head3 Koha::Objects->as_list(); > > Koha::Objects->as_list(); >-- >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 17552
:
57200
|
57201
|
57209
|
57210
| 57230 |
57231