View | Details | Raw Unified | Return to bug 23463
Collapse All | Expand All

(-)a/Koha/Item.pm (-3 / +3 lines)
Lines 74-80 sub store { Link Here
74
        $self->itype($self->biblio->biblioitem->itemtype);
74
        $self->itype($self->biblio->biblioitem->itemtype);
75
    }
75
    }
76
76
77
    if ( $self->itemcallnumber ) { # This could be improved, we should recalculate it only if changed
77
    my %updated_columns = $self->_result->get_dirty_columns;
78
    if ( exists $updated_columns{itemcallnumber} ) {
78
        my $cn_sort = GetClassSort($self->cn_source, $self->itemcallnumber, "");
79
        my $cn_sort = GetClassSort($self->cn_source, $self->itemcallnumber, "");
79
        $self->cn_sort($cn_sort);
80
        $self->cn_sort($cn_sort);
80
    }
81
    }
Lines 133-139 sub store { Link Here
133
            }
134
            }
134
        }
135
        }
135
136
136
        my %updated_columns = $self->_result->get_dirty_columns;
137
        %updated_columns = $self->_result->get_dirty_columns;
137
        return $self->SUPER::store unless %updated_columns;
138
        return $self->SUPER::store unless %updated_columns;
138
        if (    exists $updated_columns{location}
139
        if (    exists $updated_columns{location}
139
            and $self->location ne 'CART'
140
            and $self->location ne 'CART'
140
- 

Return to bug 23463