{ "id": "61505", "key": "TIMOB-873", "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": "11257", "description": "", "name": "Sprint-2011-09", "archived": true, "released": true, "releaseDate": "2011-03-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:54:31.000+0000", "created": "2011-04-15T02:38:13.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "release-1.6.1", "release-1.7.0", "reported-1.5.1", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:54:31.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": "{html}{html}", "attachment": [], "flagged": false, "summary": "Android KS: TableView append row with header test: no header appears", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "124233", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}
Triage.
My eval of the problem (untested): TableViewProxy.appendRow\ndoesn't call processData() (which is the method that checks for and\ndeals with headers) unless there are no pre-existing sections in\nthe tableview. If there are already sections,it just finds the\nbottom section and inserts the row at the end, without evaluating\ndata dictionary containing \"header\".
For someone who knows what's going on, this looks like it might\nnot be too big of a fix.
This must've been fixed long ago. Not able to reproduce. And\nappendRow
does now lead to calling\nprocessData
, probably for a while now.
Oops, ignore me. This is reproducible.
request from two pro seats is to include this fix on the 1.5.x\nbranch
(from [e4abdaefb4fba65d3c88e45abad9078cef998831])\nMake sure appended rows that have headers will create a section\n[#873\nstate:fixed-in-qa] \nhttps://github.com/appcelerator/titanium_mobile/commit/e4abdaefb4fb...
(from [8e21f8b90896dc7b2085ea8ae6eac4568ea874a5])\nDrillbit test for appendRow with header [#873]\n\nhttps://github.com/appcelerator/titanium_mobile/commit/8e21f8b90896...
Tested with 03012011_master on
\nAndroid G1 1.6
\nAndroid NexusOne 2.2.2
\nAndroid Emulator 2.1
\niPhone 4 4.2.1
(from [802c5618d9d73abac60ff22d4f791070ddea730c])\nMake sure appended rows that have headers will create a section\n[#873\nstate:fixed-in-qa] \nhttps://github.com/appcelerator/titanium_mobile/commit/802c5618d9d7...
agent set back to fixed-in-qa. putting it back to resolved