summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Attachment.pm
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2013-09-13 01:39:43 +0200
committerSimon Green <sgreen@redhat.com>2013-09-13 01:39:43 +0200
commit4a8ab2afa9c10f473812f7aaf60582ba2629bcda (patch)
tree6649dbba32e8b975abca7922e6d6b72eaa35c2f2 /Bugzilla/Attachment.pm
parent0ced6fe053d60471c8b768c95e45e640c32ce251 (diff)
downloadbugzilla-4a8ab2afa9c10f473812f7aaf60582ba2629bcda.tar.gz
bugzilla-4a8ab2afa9c10f473812f7aaf60582ba2629bcda.tar.xz
Bug 914986 - Create Bug.update_attachment to update attachments via RPC/REST
r=dkl, a=sgreen
Diffstat (limited to 'Bugzilla/Attachment.pm')
-rw-r--r--Bugzilla/Attachment.pm9
1 files changed, 5 insertions, 4 deletions
diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm
index 251363c35..92e05e606 100644
--- a/Bugzilla/Attachment.pm
+++ b/Bugzilla/Attachment.pm
@@ -900,10 +900,11 @@ sub update {
}
if (scalar(keys %$changes)) {
- $dbh->do('UPDATE attachments SET modification_time = ? WHERE attach_id = ?',
- undef, ($timestamp, $self->id));
- $dbh->do('UPDATE bugs SET delta_ts = ? WHERE bug_id = ?',
- undef, ($timestamp, $self->bug_id));
+ $dbh->do('UPDATE attachments SET modification_time = ? WHERE attach_id = ?',
+ undef, ($timestamp, $self->id));
+ $dbh->do('UPDATE bugs SET delta_ts = ? WHERE bug_id = ?',
+ undef, ($timestamp, $self->bug_id));
+ $self->{modification_time} = $timestamp;
}
return $changes;