{ "id": "159167", "key": "ALOY-1480", "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": "17730", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-07-05" }, { "id": "18066", "name": "alloy 1.9.0", "archived": false, "released": true, "releaseDate": "2016-04-23" }, { "id": "18190", "name": "alloy 1.9.1", "archived": false, "released": true, "releaseDate": "2016-07-04" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-24T01:31:46.000+0000", "created": "2016-03-31T09:03:15.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "alloy", "qe-5.4.0" ], "versions": [ { "id": "15909", "description": "Alloy 1.5.0", "name": "Alloy 1.5.0", "archived": false, "released": true, "releaseDate": "2014-09-29" }, { "id": "17983", "name": "alloy 1.8.1", "archived": false, "released": true, "releaseDate": "2016-03-22" }, { "id": "18005", "name": "alloy 1.8.5", "archived": false, "released": true, "releaseDate": "2016-03-30" } ], "issuelinks": [ { "id": "51193", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "outwardIssue": { "id": "159107", "key": "ALOY-1478", "fields": { "summary": "Data binding fails when binding string or model attribute name has dash, space or quote", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "51194", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "outwardIssue": { "id": "159174", "key": "ALOY-1481", "fields": { "summary": "Data binding: Support binding multiple models to the same view", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "51195", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "outwardIssue": { "id": "159175", "key": "ALOY-1482", "fields": { "summary": "Data binding: Support deep binding of model object attributes", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "51947", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "160129", "key": "TIMOB-23365", "fields": { "summary": "Windows: Alloy, Unable to Bind to Visible Tag on Windows 8.1 & Windows 10", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "updated": "2018-05-01T20:19:48.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": "13605", "name": "Models" } ], "description": "For ALOY-443 (Alloy 1.5.0) we started to use {{_.template()}} for complex model data binding.\r\n\r\nWith ALOY-1368 and ALOY-1369 we also adopted this method for complex collection data binding.\r\n\r\nSince {{_.template()}} always returns a string, it doesn't work for binding objects, e.g. an attributedString as the attached test case:\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nh2. Original description\r\n\r\nJust tested that, using alloy v1.8.2 and v1.8.5 I was unable to set the `attributedString` property via a `ListItem` template.\r\nUsing alloy 1.7.35 everything is working fine.\r\n\r\nI attach a simple test project that contains a `ListView` with a template composed by two labels.\r\nOn the first label I set the `text` property with a simple model string and on the second one i set the `attributedString`.\r\n\r\nFor the first label everything is working correctly (as expected) and for the second one is working only using v1.7.35 of alloy.", "attachment": [ { "id": "58776", "filename": "attributed-string-alloy-test.zip", "author": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-03-31T09:00:45.000+0000", "size": 10480092, "mimeType": "application/zip" } ], "flagged": false, "summary": "Bug/Regression: Data binding always returns string values", "creator": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Mac OSX El Capitan\r\niOS simulator 9.3\r\nTi CLI 5.0.6\r\nTi SDK 5.2.1.GA", "closedSprints": [ { "id": 625, "state": "closed", "name": "2016 Sprint 09 Tooling", "startDate": "2016-04-23T00:30:12.823Z", "endDate": "2016-05-07T00:30:00.000Z", "completeDate": "2016-05-09T03:55:41.390Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "381218", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Combined PR for ALOY-1478, ALOY-1480, ALOY-1481 and ALOY-1482:\r\nhttps://github.com/appcelerator/alloy/pull/780", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-03-31T19:50:44.000+0000", "updated": "2016-03-31T19:50:44.000+0000" }, { "id": "381222", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~bimmel] could you list this as a known issue for Alloy 1.8.5 (since that will ship with CLI 5.2.2) ?", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-03-31T19:52:47.000+0000", "updated": "2016-03-31T19:52:47.000+0000" }, { "id": "381228", "author": { "name": "bimmel-defective", "key": "bimmel", "displayName": "(deactived) Brian Immel", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~fokkezb], Not a problem.", "updateAuthor": { "name": "bimmel-defective", "key": "bimmel", "displayName": "(deactived) Brian Immel", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-31T20:23:39.000+0000", "updated": "2016-03-31T20:23:39.000+0000" }, { "id": "383726", "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-04-24T01:31:46.000+0000", "updated": "2016-04-24T01:31:46.000+0000" }, { "id": "390175", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed.\r\nTested on:
\r\niPhone 6 (9.1)\r\niOS Simulator (9.3)\r\nAndroid emulator (6.0) \r\n
Mac OSX El Capitan 10.11.5\r\nStudio: 4.7.0.201607070843\r\n
Ti SDK: 5.4.0.v20160705213725\r\n
Appc NPM: 4.2.8-1\r\nAppc CLI: 5.4.0-29\r\n
Xcode 7.3.1\r\nNode v4.4.4\r\n*
Closing Ticket*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-07-08T17:41:51.000+0000", "updated": "2016-07-08T17:41:51.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }