{ "id": "61220", "key": "TIMOB-588", "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": "11222", "name": "Release 1.2.0", "archived": true, "released": true, "releaseDate": "2010-04-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:53:36.000+0000", "created": "2011-04-15T02:32:35.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:53:36.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Base UI => Views => Table View => Delete Mode(3)

{html}", "attachment": [], "flagged": false, "summary": "deleting rows with headers via editable:true does not delete header", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123623", "author": { "name": "jamesk", "key": "jamesk", "displayName": "James K", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Deleting headers from rows via delete\nrowobj.header; also does not delete the header.

{html}", "updateAuthor": { "name": "jamesk", "key": "jamesk", "displayName": "James K", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:32:35.000+0000", "updated": "2011-04-15T02:32:35.000+0000" }, { "id": "123624", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Possible fix. Now when there are 0 rows in a section, it is\nremoved from the table (which also removes headers, footers, etc.)\nThis may be undesirable because some applications may rely on\nsections existing even AFTER they are empty, for example, apps\nwhich list things alphabetically (which may start with 26 empty\nsections and just fill them up).

\n

Uncommitted while searching for a better possible solution, and\nlooking into whether or not the delete issue can be\navoided.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:32:36.000+0000", "updated": "2011-04-15T02:32:36.000+0000" }, { "id": "123625", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [baf1546cf7eb200fbe2b98d5cc987a1c45e25cab])\nCloses #588: Removes empty sections on row delete.\n\nhttp://github.com/appcelerator/titanium_mobile/commit/baf1546cf7eb2...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:32:36.000+0000", "updated": "2011-04-15T02:32:36.000+0000" }, { "id": "123626", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Calling delete row.header should be considered\ninvalid. Instead, do that and then immediately update the row in\nthe table using tableView.updateRow().

\n

Note that now sections are deleted when empty, and so if a\nsection a user wants to exist doesn't (for example, a section\nindexed by \"B\") they will need to re-create it when adding in some\nrows.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:32:36.000+0000", "updated": "2011-04-15T02:32:36.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }