Bug 18402

Summary: Add the Koha::Item->checkout method
Product: Koha Reporter: Jonathan Druart <jonathan.druart+koha>
Component: Architecture, internals, and plumbingAssignee: Jonathan Druart <jonathan.druart+koha>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: katrin.fischer, kyle, nick, veron
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 18401    
Bug Blocks: 18403    
Attachments: Bug 18402: Add the Koha::Item->checkout method
Bug 18402: Add the Koha::Item->checkout method
Bug 18402: Add the Koha::Item->checkout method
Bug 18402: Add the Koha::Item->checkout method

Description Jonathan Druart 2017-04-07 21:15:55 UTC

    
Comment 1 Jonathan Druart 2017-04-07 21:21:21 UTC
Created attachment 61980 [details] [review]
Bug 18402: Add the Koha::Item->checkout method

Return the current checkout for a given item.
Note it may not exist.

Test plan:
  prove t/db_dependent/Koha/Items.t
should return green
Comment 2 Marc Véron 2017-04-08 08:26:44 UTC
Wanted to test, can not apply
fatal: sha1 information is lacking or useless (Koha/Item.pm)
Comment 3 Jonathan Druart 2017-04-10 12:12:35 UTC
Indeed you needs bug 18401.
Comment 4 Marc Véron 2017-04-10 15:12:56 UTC
(In reply to Jonathan Druart from comment #3)
> Indeed you needs bug 18401.

Re-tested, made sure that 18401 was applied.

$ git bz apply 18402
Bug 18402 - Add the Koha::Item->checkout method

61980 - Bug 18402: Add the Koha::Item->checkout method

Apply? [(y)es, (n)o, (i)nteractive] y
Wende an: Bug 18402: Add the Koha::Item->checkout method
fatal: sha1 information is lacking or useless (Koha/Item.pm).
Dem Repository fehlen notwendige Blobs um auf einen 3-Wege-Merge zurückzufallen.
Kann nicht zu 3-Wege-Merge zurückfallen.
Comment 5 Jonathan Druart 2017-04-10 21:19:16 UTC
Created attachment 62009 [details] [review]
Bug 18402: Add the Koha::Item->checkout method

Return the current checkout for a given item.
Note it may not exist.

Test plan:
  prove t/db_dependent/Koha/Items.t
should return green
Comment 6 Marc Véron 2017-04-11 07:18:21 UTC
Created attachment 62035 [details] [review]
Bug 18402: Add the Koha::Item->checkout method

Return the current checkout for a given item.
Note it may not exist.

Test plan:
  prove t/db_dependent/Koha/Items.t
should return green

Signed-off-by: Marc Véron <veron@veron.ch>
Comment 7 Nick Clemens 2017-04-25 20:10:24 UTC
Created attachment 62701 [details] [review]
Bug 18402: Add the Koha::Item->checkout method

Return the current checkout for a given item.
Note it may not exist.

Test plan:
  prove t/db_dependent/Koha/Items.t
should return green

Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Comment 8 Nick Clemens 2017-04-25 20:10:50 UTC
Cleared trivial conflict
Comment 9 Kyle M Hall 2017-04-28 13:01:58 UTC
Pushed to master for 17.05, thanks Jonathan!
Comment 10 Katrin Fischer 2017-05-13 12:32:41 UTC
This won't get ported back to 16.11.x as it is an enhancement.