Commit 3d3cb31a authored by Dave Lawrence's avatar Dave Lawrence

Rollback of Bug 714370 as it causes error in bug creation due to DB_COLUMNS

parent 079694f5
...@@ -65,21 +65,15 @@ use constant AUDIT_REMOVES => 0; ...@@ -65,21 +65,15 @@ use constant AUDIT_REMOVES => 0;
use constant SKIP_REQUESTEE_ON_ERROR => 1; use constant SKIP_REQUESTEE_ON_ERROR => 1;
sub DB_COLUMNS { use constant DB_COLUMNS => qw(
my $dbh = Bugzilla->dbh; id
return qw( type_id
id bug_id
type_id attach_id
bug_id requestee_id
attach_id setter_id
requestee_id status
setter_id );
status),
$dbh->sql_date_format('creation_date', '%Y.%m.%d %H:%i:%s') .
' AS creation_date',
$dbh->sql_date_format('modification_date', '%Y.%m.%d %H:%i:%s') .
' AS modification_date';
}
use constant UPDATE_COLUMNS => qw( use constant UPDATE_COLUMNS => qw(
requestee_id requestee_id
...@@ -124,14 +118,6 @@ Returns the ID of the attachment this flag belongs to, if any. ...@@ -124,14 +118,6 @@ Returns the ID of the attachment this flag belongs to, if any.
Returns the status '+', '-', '?' of the flag. Returns the status '+', '-', '?' of the flag.
=item C<creation_date>
Returns the timestamp when the flag was created.
=item C<modification_date>
Returns the timestamp when the flag was last modified.
=back =back
=cut =cut
...@@ -144,8 +130,6 @@ sub attach_id { return $_[0]->{'attach_id'}; } ...@@ -144,8 +130,6 @@ sub attach_id { return $_[0]->{'attach_id'}; }
sub status { return $_[0]->{'status'}; } sub status { return $_[0]->{'status'}; }
sub setter_id { return $_[0]->{'setter_id'}; } sub setter_id { return $_[0]->{'setter_id'}; }
sub requestee_id { return $_[0]->{'requestee_id'}; } sub requestee_id { return $_[0]->{'requestee_id'}; }
sub creation_date { return $_[0]->{'creation_date'}; }
sub modification_date { return $_[0]->{'modification_date'}; }
############################### ###############################
#### Methods #### #### Methods ####
...@@ -452,7 +436,6 @@ sub update { ...@@ -452,7 +436,6 @@ sub update {
if (scalar(keys %$changes)) { if (scalar(keys %$changes)) {
$dbh->do('UPDATE flags SET modification_date = ? WHERE id = ?', $dbh->do('UPDATE flags SET modification_date = ? WHERE id = ?',
undef, ($timestamp, $self->id)); undef, ($timestamp, $self->id));
$self->{'modification_date'} = format_time($timestamp, '%Y.%m.%d %H:%M:%S');
} }
return $changes; return $changes;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment