summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Attachment.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-09-27 00:15:10 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-09-27 00:15:10 +0200
commitf9defcea6e1ee83189674a355bda8bcf621feebe (patch)
treed60f44474c31d7a2705d8076a05e3c77f889939a /Bugzilla/Attachment.pm
parente18e70eb6db4500a7afbb84b393df33a9e23b016 (diff)
downloadbugzilla-f9defcea6e1ee83189674a355bda8bcf621feebe.tar.gz
bugzilla-f9defcea6e1ee83189674a355bda8bcf621feebe.tar.xz
Bug 915685 - backport upstream bug 914986 and bug 917483 to bmo/4.2 for allowing attachment metadata editing in webservice API
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 bf67b62fa..944337711 100644
--- a/Bugzilla/Attachment.pm
+++ b/Bugzilla/Attachment.pm
@@ -913,10 +913,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;