X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FOrdered.pm;h=59162bbd0b139a86f1a6cbf21134da548edaa9a8;hb=afcfff010f5a1d6dbc3a5fb6dfbaeb6246c33372;hp=be06d3b21f33276f2a797ee2ed9ad771c36dcd45;hpb=87b4a87703747efd8a8d785a118d30647596c8ae;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Ordered.pm b/lib/DBIx/Class/Ordered.pm index be06d3b..59162bb 100644 --- a/lib/DBIx/Class/Ordered.pm +++ b/lib/DBIx/Class/Ordered.pm @@ -471,6 +471,7 @@ sub move_to_group { my @original_values = $cursor->next; $self->set_inflated_columns ({ %values, map { $_ => shift @original_values } (@dirty_cols) }); + delete $self->{_dirty_columns}{$_} for (@dirty_cols); } if ($self->_is_in_group ($to_group) ) { @@ -563,7 +564,7 @@ sub update { # these steps are necessary to keep the external appearance of # ->update($upd) so that other things overloading update() will # work properly - my %original_values = $self->get_inflated_columns; + my %original_values = $self->get_columns; my %existing_changes = $self->get_dirty_columns; # See if any of the *supplied* changes would affect the ordering