RSS

(root)/bugzilla/4.2 : 6820 : Bugzilla/Bug.pm

To get this branch, use:
bzr branch /bugzilla/4.2

« back to all changes in this revision

Viewing changes to Bugzilla/Bug.pm

mkanat%bugzilla.org
2009-11-10 13:21:52
Revision ID: cvs-1:mkanatbugzilla.org-20091110212152-qrl6l22h7ck7z2iv
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

Show diffs side-by-side

added added

removed removed

590
590
        $class->_check_qa_contact($params->{qa_contact}, $component);
591
591
    $params->{cc} = $class->_check_cc($component, $params->{cc});
592
592
 
593
 
    # Callers cannot set Reporter, currently.
 
593
    # Callers cannot set reporter, creation_ts, or delta_ts.
594
594
    $params->{reporter} = $class->_check_reporter();
595
 
 
596
 
    $params->{creation_ts} ||= Bugzilla->dbh->selectrow_array('SELECT LOCALTIMESTAMP(0)');
 
595
    $params->{creation_ts} = 
 
596
        Bugzilla->dbh->selectrow_array('SELECT LOCALTIMESTAMP(0)');
597
597
    $params->{delta_ts} = $params->{creation_ts};
598
598
 
599
599
    if ($params->{estimated_time}) {

Loggerhead 1.18.1 is a web-based interface for Bazaar branches