{ "id": "166153", "key": "TIMOB-24418", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-03-05T14:50:07.000+0000", "created": "2017-02-20T08:54:34.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "OptionDialog", "error", "undefined", "view" ], "versions": [ { "id": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-03-05T14:50:07.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "OptionDialog generates an undefined error calling the show() method with the view parameter.\r\n\r\n*Console Log*\r\n{noformat}\r\n[ERROR] : ----- Titanium Javascript Runtime Error -----\r\n[ERROR] : In undefined: undefined,undefined\r\n[ERROR] : Message: Uncaught Error: undefined\r\n{noformat}\r\n\r\n*Test code*\r\n{noformat}\r\n\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttitle: 'OptionDialog Test'\r\n});\r\nwin.add(btn);\r\nbtn.addEventListener('click', function()\r\n{\r\n\tvar options = ['Option 1', 'Option 2'];\r\n\r\n\tvar dialog = Ti.UI.createOptionDialog({\r\n\t\tdestructive: 1,\r\n\t\toptions: options,\r\n\t\ttitle: 'Test Label'\r\n\t});\r\n\r\n\tdialog.addEventListener('click', function(e)\r\n\t{\r\n\t\tif (e.index === 0)\r\n\t\t{\r\n\t\t\tconsole.log(\"HELLO!\");\r\n\t\t}\r\n\t});\r\n\r\n\tdialog.show({\r\n\t\tview: btn\r\n\t});\r\n\t\r\n});\r\n\r\nwin.open();\r\n{noformat}\r\n\r\n\r\n", "attachment": [ { "id": "61640", "filename": "Cattura.PNG", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-02-20T08:52:44.000+0000", "size": 39086, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows Phone: OptionDialog undefined error", "creator": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "environment": "OS: Windows 10 Pro\r\nEmulator: Mobile Emulator 10.0.14393.0 720p 5 inch 1GB\r\nStudio: 4.8.0.201612050850\r\nappc 6.1.0\r\nTitanium SDK 6.1.0.v20170202120400", "closedSprints": [ { "id": 1106, "state": "closed", "name": "2019 Sprint 1", "startDate": "2018-12-31T19:39:58.070Z", "endDate": "2019-01-11T19:39:00.000Z", "completeDate": "2019-01-14T17:17:47.552Z", "originBoardId": 114 }, { "id": 1109, "state": "closed", "name": "2019 Sprint 3", "startDate": "2019-01-28T17:38:43.075Z", "endDate": "2019-02-09T17:38:00.000Z", "completeDate": "2019-02-08T21:37:29.498Z", "originBoardId": 114 }, { "id": 1118, "state": "closed", "name": "2019 Sprint 5", "startDate": "2019-02-24T18:36:06.435Z", "endDate": "2019-03-08T18:36:00.000Z", "completeDate": "2019-03-07T22:19:47.057Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "407418", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-02-20T09:02:35.000+0000", "updated": "2017-02-20T09:02:35.000+0000" }, { "id": "444949", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1341", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-01-03T01:55:20.000+0000", "updated": "2019-01-03T01:55:20.000+0000" }, { "id": "446485", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. Waiting on Jenkins build. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-04T12:43:58.000+0000", "updated": "2019-03-04T12:43:58.000+0000" }, { "id": "446523", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Merged to master.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-03-04T22:42:39.000+0000", "updated": "2019-03-04T22:42:39.000+0000" }, { "id": "446547", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Fix verified in SDK Version {{8.1.0.v20190304181927}}. \r\n\r\nTest and other information can be found at:\r\nhttps://github.com/appcelerator/titanium_mobile_windows/pull/1341", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-05T14:49:56.000+0000", "updated": "2019-03-05T14:49:56.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }