From 8f33041e6542f12e6897ef6ed7a67c43a118c504 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Wed, 23 Jun 2010 17:39:11 -0700 Subject: Bug 572602: Change the way that Bugzilla::Object determines what fields are required for create(). It now assumes that any column that is NOT NULL and has not DEFAULT in the database is required. We also shift the burden of throwing errors about empty values to the validators. This fixes the bug that Bugzilla::Bug->create() wasn't populating default values for fields if they weren't specified in the create() parameters. r=timello, a=mkanat --- Bugzilla/Whine/Schedule.pm | 2 -- 1 file changed, 2 deletions(-) (limited to 'Bugzilla/Whine') diff --git a/Bugzilla/Whine/Schedule.pm b/Bugzilla/Whine/Schedule.pm index be0f2fae8..63148856c 100644 --- a/Bugzilla/Whine/Schedule.pm +++ b/Bugzilla/Whine/Schedule.pm @@ -42,8 +42,6 @@ use constant DB_COLUMNS => qw( mailto_type ); -use constant REQUIRED_CREATE_FIELDS => qw(eventid mailto mailto_type); - use constant UPDATE_COLUMNS => qw( eventid run_day -- cgit v1.2.3-24-g4f1b