{ "id": "82823", "key": "TIMOB-6949", "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": [], "resolution": null, "resolutiondate": null, "created": "2011-11-17T07:05:24.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity", "tbs-1.9.0" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": null, "updated": "2018-03-06T18:57:58.000+0000", "status": { "description": "Submitted for code review", "name": "In Review", "id": "10003", "statusCategory": { "id": 4, "key": "indeterminate", "colorName": "yellow", "name": "In Progress" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Problem\r\n\r\nOn Android, filtering a table displays all the headers, even though some contain no rows. It should only display the headers of the matching table rows.\r\n\r\nThis works correctly on iOS - see the attached screenshots which show the difference between the two platforms.\r\n\r\nh2. Testcase\r\n\r\nWrite \"a\" in the searchbar and you'll also see the \"b\" and \"c\" headers, even though they don't have any items.\r\n\r\n{code:lang=javascript|title=app.js}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar table = Ti.UI.createTableView({\r\n search: Ti.UI.createSearchBar(),\r\n filterAttribute:'title',\r\n filterCaseInsensitive:true,\r\n data: [\r\n {\r\n title: 'a',\r\n header: 'a'\r\n },\r\n {\r\n title: 'b',\r\n header: 'b'\r\n },\r\n {\r\n title: 'c',\r\n header: 'c'\r\n }\r\n ]\r\n});\r\nwin.add(table);\r\nwin.open();\r\n{code}\r\n", "attachment": [ { "id": "24905", "filename": "iOS Simulator.png", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-02T08:14:11.000+0000", "size": 165792, "mimeType": "image/png" }, { "id": "24904", "filename": "screenshot_463.png", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-02T06:50:46.000+0000", "size": 19651, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: UI - table filter does not hide empty headers", "creator": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "subtasks": [], "reporter": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "environment": "* Titanium SDK 1.8.0.1\r\n* Android 2.3.3\r\n* Emulator\r\n* Mac OS X 10.7.2\r\n* Titanium Studio 1.0.7.201112281340", "comment": { "comments": [ { "id": "177222", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Sindre\r\n\r\nThanks for raising this ticket.\r\n\r\nIn order for me to escalate it to the core team, all the fields must be complete. Please check it against the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist], and add any missing information.\r\n\r\nA test case must be included, and run without modification, as per the [Creating a Test Case|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase] section.\r\n\r\nI will mark this resolved for now. Please reopen it once it is complete, and I will move it to the main project.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-26T17:04:02.000+0000", "updated": "2011-12-26T17:04:02.000+0000" }, { "id": "177751", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "body": "Added testcase. Please reopen.", "updateAuthor": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2012-01-02T05:35:23.000+0000", "updated": "2012-01-02T05:35:23.000+0000" }, { "id": "264908", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "PR:-\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4523", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-08-05T07:32:39.000+0000", "updated": "2013-08-05T07:32:39.000+0000" }, { "id": "273981", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "new PR :\nhttps://github.com/appcelerator/titanium_mobile/pull/4764", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-10-07T09:28:06.000+0000", "updated": "2013-10-07T09:28:06.000+0000" }, { "id": "293155", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "create new PR :-\nhttps://github.com/appcelerator/titanium_mobile/pull/5353", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-02-14T09:30:17.000+0000", "updated": "2014-02-14T09:30:17.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }