{ "id": "162153", "key": "ALOY-1510", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "18190", "name": "alloy 1.9.1", "archived": false, "released": true, "releaseDate": "2016-07-04" }, { "id": "18312", "name": "alloy 1.9.2", "archived": false, "released": true, "releaseDate": "2016-09-09" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-07-27T23:57:04.000+0000", "created": "2016-07-27T15:55:30.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-09-09T16:52:56.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "h2. Problem\r\nWe have a number of views with tableviews that use the SearchView component. When compiling for iOS, we receive this warning:\r\n\r\n{code:none}\r\n[WARN] is only available in Android\r\n[WARN] To get rid of this warning, add platform=\"android\" to your element\r\n{code}\r\n\r\n\r\nHowever, our SearchView elements already have the platform attribute set to \"android\".\r\n\r\nh2. Test case\r\n{code:lang=xml|title=index.xml}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nh2. Logs\r\n{code:lang=none|title=console}\r\n[INFO] [index.xml] view processing...\r\n[INFO] style: \"index.tss\"\r\n[INFO] view: \"index.xml\"\r\n[WARN] is only available in Android\r\n[WARN] To get rid of this warning, add platform=\"android\" to your element\r\n[INFO] controller: \"index.js\"\r\n[TRACE] - Processing \"builtins\" module...\r\n[TRACE] - Processing \"optimizer\" module...\r\n[TRACE] - Processing \"compress\" module...\r\n[INFO] created: \"Resources/iphone/alloy/controllers/index.js\"\r\n[DEBUG] map: \"build/map/Resources/iphone/alloy/controllers/index.js.map\"\r\n[INFO] created: \"Resources/iphone/alloy/styles/index.js\"\r\n{code}\r\nh2. Notes\r\nI believe the error is in commands/compile/parsers/Ti.UI.TableView.js:49. It currently reads:\r\n\r\n{code:javascript}\r\nif (node.getAttribute('platform') !== 'android') {\r\n{code}\r\n\r\nI believe it should read:\r\n\r\n{code:javascript}\r\nif (child.getAttribute('platform') !== 'android') {\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Receiving \" is only available in Android\" when compiling tableview despite platform=\"android\" attribute being present", "creator": { "name": "dpfeiffer", "key": "dpfeiffer", "displayName": "Daniel Pfeiffer", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "dpfeiffer", "key": "dpfeiffer", "displayName": "Daniel Pfeiffer", "active": true, "timeZone": "America/Chicago" }, "environment": "Alloy 1.9.1", "closedSprints": [ { "id": 682, "state": "closed", "name": "2016 Sprint 15 SDK", "startDate": "2016-07-16T00:19:20.819Z", "endDate": "2016-07-30T00:19:00.000Z", "completeDate": "2016-08-01T04:40:11.421Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "391706", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Interesting, how does it behave it ListViews? Didn't see the warning there. Thanks! -Please make a PR for Alloy to fix it if possible.- I will make a PR for you.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-27T17:56:53.000+0000", "updated": "2016-07-27T18:03:46.000+0000" }, { "id": "391707", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/alloy/pull/794", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-27T18:04:19.000+0000", "updated": "2016-07-27T18:04:19.000+0000" }, { "id": "391752", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR merged.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-07-27T23:57:04.000+0000", "updated": "2016-07-27T23:57:04.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }