From 18555f244ad0bbb0526e58cb26993161d9fd07e0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 2 Dec 2019 14:32:09 +0100 Subject: [PATCH] Bug 23463: cn_sort needs to be updated if cn_source changed Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- Koha/Item.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index cc4c772b1b..65b55558b1 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -77,8 +77,10 @@ sub store { } my %updated_columns = $self->_result->get_dirty_columns; - if ( exists $updated_columns{itemcallnumber} ) { - my $cn_sort = GetClassSort($self->cn_source, $self->itemcallnumber, ""); + if ( exists $updated_columns{itemcallnumber} + or exists $updated_columns{cn_source} ) + { + my $cn_sort = GetClassSort( $self->cn_source, $self->itemcallnumber, "" ); $self->cn_sort($cn_sort); } -- 2.39.5