]> git.ipfire.org Git - thirdparty/bugzilla.git/commit
Bug 572602: Change the way that Bugzilla::Object determines what fields
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Thu, 24 Jun 2010 00:39:11 +0000 (17:39 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Thu, 24 Jun 2010 00:39:11 +0000 (17:39 -0700)
commit8f33041e6542f12e6897ef6ed7a67c43a118c504
treec5caf60f706dfa1043a69e135b5246bd63455aae
parent0a4878ccff5b9c281b018ad6c13fa5ac40986708
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
19 files changed:
Bugzilla/Attachment.pm
Bugzilla/Bug.pm
Bugzilla/Classification.pm
Bugzilla/Component.pm
Bugzilla/Field.pm
Bugzilla/Field/Choice.pm
Bugzilla/Flag.pm
Bugzilla/Group.pm
Bugzilla/Keyword.pm
Bugzilla/Milestone.pm
Bugzilla/Object.pm
Bugzilla/Product.pm
Bugzilla/Search/Recent.pm
Bugzilla/Search/Saved.pm
Bugzilla/User.pm
Bugzilla/Util.pm
Bugzilla/Version.pm
Bugzilla/Whine/Schedule.pm
email_in.pl