{ "id": "155769", "key": "TIMOB-20599", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-04T16:50:35.000+0000", "created": "2016-03-16T11:44:43.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "picker", "qe-5.4.0", "windows_phone" ], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-06-13T22:03:16.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": "It's affected 5.2.0. \r\n\r\nHow to reproduce:\r\n\r\n{code:javascript}\r\nfunction onTest() {\r\n\tvar column = picker.columns[0];\r\n\t_.each(column.rows, function(row) {\r\n\t\tcolumn.removeRow(row);\r\n\t});\r\n\t\r\n\tvar data = [];\r\n\tdata[0]=Ti.UI.createPickerRow({title:'2 Bananas'});\r\n\tdata[1]=Ti.UI.createPickerRow({title:'2 Strawberries'});\r\n\tdata[2]=Ti.UI.createPickerRow({title:'2 Mangos'});\r\n\tdata[3]=Ti.UI.createPickerRow({title:'2 Grapes'});\r\n\t\r\n\tpicker.add(data);\r\n}\r\n\r\n//----------------------------\r\n\r\nvar picker = Ti.UI.createPicker({\r\n top:50\r\n});\r\n\r\nvar data = [];\r\ndata[0]=Ti.UI.createPickerRow({title:'Bananas'});\r\ndata[1]=Ti.UI.createPickerRow({title:'Strawberries'});\r\ndata[2]=Ti.UI.createPickerRow({title:'Mangos'});\r\ndata[3]=Ti.UI.createPickerRow({title:'Grapes'});\r\n\r\npicker.add(data);\r\n\r\n$.win.add(picker);\r\n$.win.open();\r\n\r\n_.delay(onTest, 2000);\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Windows: picker updating data throws unknown exception", "creator": { "name": "zozo4kin", "key": "zozo4kin", "displayName": "Zakhar Zhuravlev", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "zozo4kin", "key": "zozo4kin", "displayName": "Zakhar Zhuravlev", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 614, "state": "closed", "name": "2016 Sprint 07 SDK", "startDate": "2016-03-26T00:38:56.432Z", "endDate": "2016-04-09T00:38:00.000Z", "completeDate": "2016-04-11T04:41:08.231Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "380872", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Picker {{removeRow}} and Row/Column editing operation (through {{PickerRow}} and {{PickerColum}} is not implemented yet. Moving this to 5.4.0.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-29T03:02:13.000+0000", "updated": "2016-03-29T03:02:13.000+0000" }, { "id": "381321", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Plain Picker still has some issues. Re-opening this.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-01T20:45:24.000+0000", "updated": "2016-04-01T20:45:24.000+0000" }, { "id": "381434", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/606", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-04T09:55:16.000+0000", "updated": "2016-04-04T09:55:16.000+0000" }, { "id": "381435", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Note: \r\n\r\n{code}\r\n_.each(column.rows, function(row) {\r\n\tcolumn.removeRow(row);\r\n});\r\n{code}\r\n\r\nI think this sample code may be not quite right because {{column.removeRow}} updates {{column.rows}} while iteration. So everytime {{_.each}} evaluates {{column.rows}}, it may have been changed (which causes undesired result). So make sure to use immutable array:\r\n\r\n{code}\r\nvar rows = column.rows;\r\n_.each(rows, function(row) {\r\n\tcolumn.removeRow(row);\r\n});\r\n{code}", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-04T10:01:50.000+0000", "updated": "2016-04-04T10:01:50.000+0000" }, { "id": "388238", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed.\r\nTested on:\r\nMicrosoft Lumia 640 (8.1)\r\nWindows Simulator (8.1)\r\nMicrosoft Lumia 640 (10)\r\nWindows Simulator (10)\r\nWindows 10 Pro\r\nStudio: 4.7.0.201606100920\r\nTi SDK: 5.4.0.v20160608165242\r\nAppc NPM: 4.2.7-2\r\nApp CLI: 5.4.0-15\r\nNode v4.4.4\r\n*Closing Ticket.*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-13T22:02:57.000+0000", "updated": "2016-06-13T22:02:57.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }