diff options
author | mkanat%bugzilla.org <> | 2009-11-10 21:21:52 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-11-10 21:21:52 +0000 |
commit | e4dfffc24ca572965c513356c7c8a19f82a22c64 (patch) | |
tree | 4a3718d3a9d18d83f986c0ade9993a5432ac6f15 /Bugzilla/Bug.pm | |
parent | 4b2c9f0f96242fcd5395c088de4e27bffbfb8085 (diff) | |
download | bugs-e4dfffc24ca572965c513356c7c8a19f82a22c64.tar bugs-e4dfffc24ca572965c513356c7c8a19f82a22c64.tar.gz bugs-e4dfffc24ca572965c513356c7c8a19f82a22c64.tar.bz2 bugs-e4dfffc24ca572965c513356c7c8a19f82a22c64.tar.xz bugs-e4dfffc24ca572965c513356c7c8a19f82a22c64.zip |
Bug 526165: Make it impossible to set creation_ts via Bugzilla::Bug->create
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r-- | Bugzilla/Bug.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 1c8b8b965..107b3f6af 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -590,10 +590,10 @@ sub run_create_validators { $class->_check_qa_contact($params->{qa_contact}, $component); $params->{cc} = $class->_check_cc($component, $params->{cc}); - # Callers cannot set Reporter, currently. + # Callers cannot set reporter, creation_ts, or delta_ts. $params->{reporter} = $class->_check_reporter(); - - $params->{creation_ts} ||= Bugzilla->dbh->selectrow_array('SELECT LOCALTIMESTAMP(0)'); + $params->{creation_ts} = + Bugzilla->dbh->selectrow_array('SELECT LOCALTIMESTAMP(0)'); $params->{delta_ts} = $params->{creation_ts}; if ($params->{estimated_time}) { |