{ "id": "111570", "key": "TIMOB-13174", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15396", "description": "2013 Sprint 07 Core", "name": "2013 Sprint 07 Core", "archived": true, "released": true, "releaseDate": "2013-04-08" }, { "id": "15105", "description": "2013 Sprint 07", "name": "2013 Sprint 07", "archived": true, "released": true, "releaseDate": "2013-04-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-26T21:23:47.000+0000", "created": "2013-03-23T11:12:03.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_tableview", "qe-devCheck", "qe-sdk3.1.0", "qe-testadded", "regression" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "34686", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "125653", "key": "TIMOB-16347", "fields": { "summary": "iOS: SectionHeader - Clicking on TableViewSection with custom properties throws a runtime error", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-01-30T21:24:35.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "This is regression. The issue does not exist on 3.0.2.\r\n\r\nSteps to Reproduce:\r\n1. Create an application with code below and launch the application\r\n2. Longpress on any row\r\n\r\nActual: Shows Runtime Error with source error \"Ti.API.info('customProp: ' + e.rowData.customProp);\". Please find the attached log file and screen shot.\r\nExpected: Should not show the Runtime Error.\r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow();\r\nvar tableData = []\r\n        var s = 0;\r\n        var nRow = 0;\r\n    \r\n        for(var i = 0; i < 100; i++){\r\n            var createNewSection = (i + 1) % 10 == 9 || i == 0 ? true : false;\r\n            createNewSection ? nRow = 1 : nRow++;\r\n            tableData.push({\r\n                title:'Row #' + nRow + ' Index #' + i + ' Section #' + s,\r\n                customProp:'Hello World! #' + i,\r\n                header: createNewSection ? 'Section #' + s++ : null\r\n            });\r\n        }\r\n        var table = Ti.UI.createTableView({\r\n            data: tableData\r\n        });\r\n        _window.add(table);\r\n        \r\n        table.addEventListener('longpress', function(e){\r\n            Ti.API.info('Section:    ' + e.section);\r\n            Ti.API.info('Row:        ' + e.row);\r\n            Ti.API.info('Row Data:   ' + e.rowData);\r\n            Ti.API.info('Index:      ' + e.index);\r\n            Ti.API.info('customProp: ' + e.rowData.customProp);\r\n        \r\n        });\r\n        _window.open();\r\n{code}", "attachment": [ { "id": "36604", "filename": "device.png", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-23T11:12:03.000+0000", "size": 101898, "mimeType": "image/png" }, { "id": "36603", "filename": "log.txt", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-23T11:12:03.000+0000", "size": 1465, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Tableview: Shows Runtime Error on longpressing on any row", "creator": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 3.1.0.v20130322171500\r\nStudio:3.0.2.201302191606\r\nDevice: Galaxy Nexus(v 4.0.4), Nexus 7 (V4.1)\r\nMac OS - 10.8\r\nCLI - 3.0.25-alpha", "comment": { "comments": [ { "id": "244063", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This seems like a regression caused by https://github.com/vishalduggal/titanium_mobile/commit/1121388b23e60153a3c9ea1cedce3c0609451b9e", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-26T01:04:33.000+0000", "updated": "2013-03-26T01:04:33.000+0000" }, { "id": "244473", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested With - \r\nSDK: 3.1.0.v20130327135307\r\nStudio: 3.1.0.201303261815\r\nDevice: Samsung Galaxy Tab (3.2), Nexus 7 (V4.1)\r\nMac OS - 10.8\r\nCLI - 3.0.25-alpha\r\n\r\nResult - Now its working as expected, does not show Runtime error on long-pressing on any row .", "updateAuthor": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-28T12:00:06.000+0000", "updated": "2013-03-28T12:00:06.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }