{ "id": "155658", "key": "TIMOB-24181", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-05-17T22:09:59.000+0000", "created": "2016-03-12T02:01:10.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-17T22:34:30.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "index.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n \r\n \r\n \r\n \r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nindex.js\r\n{code}\r\n$.index.open();\r\n\r\nvar listitem = {\r\n\tproperties:{\r\n\t\taccessoryType: undefined,\r\n\t\tbackgroundColor:undefined\r\n\t},\r\n\ttitle:{text:'List Item Title'}\r\n};\r\n$.listsection1.setItems([listitem]);\r\n{code}\r\n\r\nOn iOS, the properties fall back to the values set in the template. On Android, the properties fall back to the default values.\r\n\r\nThis is inconvenient for cross-platform development.", "attachment": [], "flagged": false, "summary": "Parity: ListItem properties set to undefined/null have inconsistent results on iOS and Android", "creator": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on SDK 5.2.0/iOS 9/Android 5", "closedSprints": [ { "id": 796, "state": "closed", "name": "2017 Sprint 02 SDK", "startDate": "2017-01-15T00:00:41.845Z", "endDate": "2017-01-29T00:00:00.000Z", "completeDate": "2017-01-30T21:10:44.640Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "402202", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "SDK 5.5.1.GA, 6.0.0.GA\r\nThis is reproducible by the following classic app:\r\n\r\n{code}\r\nvar template = {\r\n\tproperties: {\r\n name: \"template\",\r\n\t\taccessoryType: Ti.UI.LIST_ACCESSORY_TYPE_DISCLOSURE,\r\n backgroundColor: 'red'\r\n\t},\r\n\tchildTemplates: [\r\n\t{\r\n\t\ttype: 'Ti.UI.Label',\r\n\t\tbindId: 'title',\r\n\t\tproperties: {\r\n\t\t\tbindId: 'title'\r\n\t\t}\r\n\t}\r\n\t]\r\n};\r\n\r\nvar win = Ti.UI.createWindow({ title: 'Complex Templates' });\r\nvar section = Ti.UI.createListSection();\r\nvar listView = Ti.UI.createListView({\r\n\tsections: [section],\r\n\ttemplates: { 'template': template },\r\n\tdefaultItemTemplate: 'template'\r\n});\r\nvar item = {\r\n\tproperties: {\r\n\t\taccessoryType: undefined,\r\n\t\tbackgroundColor: undefined\r\n\t},\r\n\ttitle: {\r\n\t\ttext: \"List Item Title\"\r\n\t}\r\n};\r\nsection.setItems([item]);\r\nwin.add(listView);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-11-29T16:59:54.000+0000", "updated": "2016-11-29T16:59:54.000+0000" }, { "id": "402241", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "So the expected result is that android falls back to the values set in the template right?", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-30T06:19:11.000+0000", "updated": "2016-11-30T06:19:11.000+0000" }, { "id": "403047", "author": { "name": "fmerzadyan", "key": "fmerzadyan2", "displayName": "Frankie Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8670\r\n6_1_0: https://github.com/appcelerator/titanium_mobile/pull/9017", "updateAuthor": { "name": "fmerzadyan", "key": "fmerzadyan2", "displayName": "Frankie Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-12-09T00:43:19.000+0000", "updated": "2017-05-04T16:43:00.000+0000" }, { "id": "419385", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FAILED FR with this environment:\r\n\r\nNode Version: 6.10.1\r\nNPM Version: 3.10.10\r\nMac OS: 10.12.4\r\nAppc CLI: 6.2.0\r\nAppc CLI NPM: 4.2.9\r\nTitanium SDK versions: 6.1.0, 6.2.0 locally built (on appropriate branch)\r\nAppcelerator Studio, build: 4.8.1.201612050850\r\nXcode 8.3.2\r\nAndroid device 6.0.1\r\niOS Device 10.3 \r\n\r\nOn iOS device, the background of the Title is red as expected. On the Android device it is black. Per the ticket, it should be red. I tested the demo code in the PR (classic version) and the Alloy version in the ticket.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-09T18:14:15.000+0000", "updated": "2017-05-09T18:18:04.000+0000" }, { "id": "419911", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix in 6.2.0.v20170517150008 and 6.1.0.v20170517143931. Test and other information can be found at:\r\nMaster: https://github.com/appcelerator/titanium_mobile/pull/8670 \r\n6_1_X: https://github.com/appcelerator/titanium_mobile/pull/9017", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-17T22:34:22.000+0000", "updated": "2017-05-17T22:34:22.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }