From aca53c540c69496390b172a55a46b817d2828d0f Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Wed, 10 Feb 2010 16:46:59 -0800 Subject: Bug 545541: New Hook: object_columns r=mkanat, a=mkanat (module owner) --- Bugzilla/Field/Choice.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/Field') diff --git a/Bugzilla/Field/Choice.pm b/Bugzilla/Field/Choice.pm index 9c2fbdb38..95fb4bf82 100644 --- a/Bugzilla/Field/Choice.pm +++ b/Bugzilla/Field/Choice.pm @@ -142,7 +142,7 @@ sub create { my $class = shift; my ($params) = @_; foreach my $key (keys %$params) { - if (!grep {$_ eq $key} $class->DB_COLUMNS) { + if (!grep {$_ eq $key} $class->_get_db_columns) { delete $params->{$key}; } } -- cgit v1.2.3-24-g4f1b