Bug 22142: Do not revert data if 'unchanged' was set

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2019-08-05 10:54:57 -05:00 committed by Martin Renvoize
parent 52885ff55b
commit cec6f46b47
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
2 changed files with 2 additions and 1 deletions

View File

@ -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};
}

View File

@ -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');