From: Peter Rabbitson Date: Tue, 11 May 2010 14:45:49 +0000 (+0000) Subject: Comment weird looking code X-Git-Tag: v0.08122~72^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7c6fa77f1d0d586d02bd3548969a37a15e73e8ba;p=dbsrgits%2FDBIx-Class.git Comment weird looking code --- diff --git a/lib/DBIx/Class/FilterColumn.pm b/lib/DBIx/Class/FilterColumn.pm index 9002058..45b798c 100644 --- a/lib/DBIx/Class/FilterColumn.pm +++ b/lib/DBIx/Class/FilterColumn.pm @@ -123,7 +123,11 @@ sub update { exists $self->column_info($key)->{_filter_info} ) { $self->set_filtered_column($key, delete $attrs->{$key}); - $self->get_column($key); + + # FIXME update() reaches directly into the object-hash + # and we may *not* have a filtered value there - thus + # the void-ctx filter-trigger + $self->get_column($key) unless exists $self->{_column_data}{$key}; } }