Closed Bug 276522 Opened 20 years ago Closed 20 years ago

setting icalComponent on an event shouldn't update lst-modified

Categories

(Calendar :: Internal Components, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mvl, Assigned: shaver)

Details

Attachments

(2 files, 1 obsolete file)

When setting icalComponent on an event, the last-modified field gets updated to
the current time. They should not change, since parsing doesn't actually change
anything.
Attached patch patch (obsolete) — — Splinter Review
Attachment #169940 - Flags: first-review?(shaver)
related: attaching an event to a calendar (after parsing it) also updates
lastmodified. (due to the general makeMemberAttr().) I think it shouldn't.
Attached patch patch v2 — — Splinter Review
Updated patch. Also makes sure last-modified isn't updated when setting parent.
Attachment #169940 - Attachment is obsolete: true
Attachment #169977 - Flags: first-review?(shaver)
Attachment #169940 - Flags: first-review?(shaver)
Comment on attachment 169977 [details] [diff] [review]
patch v2

>Index: base/src/calEvent.js
>     clone: function () {
>+        m.mDirty = false;

Ignore that one, it isn't needed.
Attached patch additional patch — — Splinter Review
This is also needed to keep lastmodified. MAke sure to read the date before
cloning, and copy dirty info.
Attachment #169988 - Flags: first-review?(shaver)
Attachment #169988 - Flags: first-review?(shaver) → first-review+
Attachment #169977 - Flags: first-review?(shaver) → first-review+
patches checked in.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: