Bugzilla – Attachment 92153 Details for
Bug 22142
An item's current location changes to blank when it is removed from Course Reserves
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22142: Do not revert data if 'unchanged' was set
Bug-22142-Do-not-revert-data-if-unchanged-was-set.patch (text/plain), 1.31 KB, created by
Kyle M Hall (khall)
on 2019-08-12 12:33:52 UTC
(
hide
)
Description:
Bug 22142: Do not revert data if 'unchanged' was set
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2019-08-12 12:33:52 UTC
Size:
1.31 KB
patch
obsolete
>From ad55a17ef63216383ff02820d8501d6bb96e3c98 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 5 Aug 2019 10:54:57 -0500 >Subject: [PATCH] Bug 22142: Do not revert data if 'unchanged' was set > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/CourseReserves.pm | 1 + > t/db_dependent/CourseReserves/CourseItems.t | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > >diff --git a/C4/CourseReserves.pm b/C4/CourseReserves.pm >index 39630b63c9..2c130af192 100644 >--- a/C4/CourseReserves.pm >+++ b/C4/CourseReserves.pm >@@ -590,6 +590,7 @@ sub _RevertFields { > > my $mod_item_params; > foreach my $field ( @FIELDS ) { >+ next unless defined $course_item->{$field}; > $mod_item_params->{$field} = $course_item->{$field}; > } > >diff --git a/t/db_dependent/CourseReserves/CourseItems.t b/t/db_dependent/CourseReserves/CourseItems.t >index 38ceaa39e3..c5ce9652ff 100644 >--- a/t/db_dependent/CourseReserves/CourseItems.t >+++ b/t/db_dependent/CourseReserves/CourseItems.t >@@ -23,7 +23,7 @@ use C4::CourseReserves qw/ModCourseItem ModCourseReserve DelCourseReserve GetCou > use C4::Context; > use Koha::Items; > >-use Test::More tests => 28; >+use Test::More tests => 29; > > BEGIN { > require_ok('C4::CourseReserves'); >-- >2.20.1 (Apple Git-117)
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 22142
:
90577
|
92015
|
92152
|
92153
|
92168
|
92169