Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Handle alarms with absolute time #570

Open
clochix opened this issue Jul 6, 2016 · 0 comments
Open

Handle alarms with absolute time #570

clochix opened this issue Jul 6, 2016 · 0 comments

Comments

@clochix
Copy link
Contributor

clochix commented Jul 6, 2016

A user has events whose alarm is in absolute time. We are unable to display this alarm and an error is thrown:

"TypeError: m is null" "http://localhost:9113/javascripts/app.js" 1068 2 TypeError: m is null
Stack trace:
exports.iCalDurationToUnitValue@http://localhost:9113/javascripts/app.js:1068:3
AlertPopoverScreen</AlertPopoverScreen.prototype.afterRender@http://localhost:9113/javascripts/app.js:9449:17
PopoverScreenView</PopoverScreenView.prototype.render@http://localhost:9113/javascripts/app.js:1568:12
PopoverView</PopoverView.prototype.renderScreen@http://localhost:9113/javascripts/app.js:1685:5
PopoverView</PopoverView.prototype.switchToScreen@http://localhost:9113/javascripts/app.js:1671:12
MainPopoverScreen</MainPopoverScreen.prototype.events["click .input-alert"]@http://localhost:9113/javascripts/app.js:10084:14
jQuery.event.dispatch@http://localhost:9113/javascripts/vendor.js:4522:15
jQuery.event.add/elemData.handle@http://localhost:9113/javascripts/vendor.js:4209:6
 "exports.iCalDurationToUnitValue@http://localhost:9113/javascripts/app.js:1068:3

Here's a sample of such an event:

    { 
      "id": "e36b487277e6feb25c318fce162bf947",
      "key": "e36b487277e6feb25c318fce162bf947",
      "value": {
        "_id": "e36b487277e6feb25c318fce162bf947",
        "_rev": "1-dc7aa77152a1849a05a5e6ac045ea0e3",
        "start": "2013-09-05T08:00:00.000Z",
        "end": "2013-09-05T09:00:00.000Z",
        "details": "",
        "description": "xxxx",
        "rrule": "",
        "tags": [
          "Cours"
        ],
        "attendees": [],
        "related": null,
        "alarms": [
          { 
            "trigg": "19760401T005545Z",
            "action": "DISPLAY"
          }
        ],
        "created": "2013-06-20T12:53:04.000Z",
        "lastModification": "2013-06-20T12:53:34.000Z",
        "caldavuri": "3CDDC6CB-C755-4D1E-87C1-4F800ADE1549",
        "docType": "event"
      }
    },
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant