Bug 17594

Summary: Make Koha::Object->discard_changes available
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: josef.moravec, kyle
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 17579    
Attachments: Bug 17594: Make Koha::Object->discard_changes available
Bug 17594: Make Koha::Object->discard_changes available
[SIGNED-OFF] Bug 17594: Make Koha::Object->discard_changes available
Bug 17594: Make Koha::Object->discard_changes available

Description Jonathan Druart 2016-11-09 13:20:05 UTC

    
Comment 1 Jonathan Druart 2016-11-09 13:21:17 UTC
Created attachment 57385 [details] [review]
Bug 17594: Make Koha::Object->discard_changes available

We need this new method to refresh an object after it has been updated.

Test plan:
  prove t/db_dependent/Koha/Object.t
should return green
Comment 2 Josef Moravec 2016-11-15 09:54:00 UTC
I am sorry:

t/db_dependent/Koha/Object.t .. 2/7 Bareword "dt_from_string" not allowed while "strict subs" in use at t/db_dependent/Koha/Object.t line 97.
Execution of t/db_dependent/Koha/Object.t aborted due to compilation errors.
Comment 3 Jonathan Druart 2016-11-15 10:32:58 UTC
Created attachment 57484 [details] [review]
Bug 17594: Make Koha::Object->discard_changes available

We need this new method to refresh an object after it has been updated.

Test plan:
  prove t/db_dependent/Koha/Object.t
should return green
Comment 4 Josef Moravec 2016-11-15 10:36:21 UTC
Created attachment 57485 [details] [review]
[SIGNED-OFF] Bug 17594: Make Koha::Object->discard_changes available

We need this new method to refresh an object after it has been updated.

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

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Comment 5 Kyle M Hall 2016-11-15 15:18:53 UTC
Created attachment 57496 [details] [review]
Bug 17594: Make Koha::Object->discard_changes available

We need this new method to refresh an object after it has been updated.

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

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 6 Kyle M Hall 2016-11-15 15:19:31 UTC
Pushed to master for 16.11, thanks Jonathan!