{ "id": "161020", "key": "TIMOB-23498", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-06-21T18:38:43.000+0000", "created": "2016-06-10T19:39:02.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity" ], "versions": [], "issuelinks": [ { "id": "52011", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "161018", "key": "TIMOB-23497", "fields": { "summary": "Android: Support indicatorColor and indicatorDiameter properties on Ti.UI.ActivityIndicator", "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": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "52013", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "155985", "key": "TIMOB-20624", "fields": { "summary": "Parity: Combine unit tests for SDKs into common suite/repo", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "52012", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "161019", "key": "TIDOC-2528", "fields": { "summary": "Ti.UI.ActivityIndicator.indicatorDiameter marked as MobileWeb only", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-09-05T16:45:21.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Any of the UI proxies (subclasses of Ti.UI.View) that have *id properties for translation keys need to retain their existing translations/values if the newly set key can't be found.\r\n\r\ni.e. if we have a title of \"Title\" and set titled to 'key_that_wont_be_found', the title should stay 'Title' if no key could be found.\r\n\r\nTest case:\r\n\r\n{code:javascript}\r\nit('titleid', function () {\r\n\t\tvar bar = Ti.UI.createButton({\r\n\t\t\ttitleid: 'this_is_my_key'\r\n\t\t});\r\n\t\tshould(bar.titleid).be.a.String;\r\n\t\tshould(bar.getTitleid).be.a.Function;\r\n\t\tshould(bar.titleid).eql('this_is_my_key');\r\n\t\tshould(bar.getTitleid()).eql('this_is_my_key');\r\n\t\tshould(bar.title).eql('this is my value');\r\n\t\tbar.titleid = 'other text'; // key won't get found!\r\n\t\tshould(bar.titleid).eql('other text');\r\n\t\tshould(bar.getTitleid()).eql('other text');\r\n\t\tshould(bar.title).eql('this is my value'); // should retain old value if can't find key! Windows returns 'other text'\r\n\t});\r\n{code}\r\n\r\n*Classic app*\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'green', layout: 'vertical' }),\r\n button = Ti.UI.createButton({ title: 'BUTTON TITLE', backgroundColor: 'blue' });\r\n\r\nwin.addEventListener('open', function () {\r\n button.titleid = \"should_not_be_found\";\r\n Ti.API.info(button.title); // should print \"BUTTON TITLE\"\r\n});\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: titleId/title should retain existing value if key not found", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 649, "state": "closed", "name": "2016 Sprint 13 SDK", "startDate": "2016-06-18T00:25:17.303Z", "endDate": "2016-07-02T00:25:00.000Z", "completeDate": "2016-07-04T04:25:16.889Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "388536", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Do we have *id property other than {{titleid/textid}}? If so let's create new ticket for those.\r\nChanged ticket title to describe this ticket is for {{titleid/textid}}.\r\n\r\nPR: https://github.com/appcelerator/titanium_mobile_windows/pull/746\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-06-17T08:10:24.000+0000", "updated": "2016-06-17T08:10:24.000+0000" }, { "id": "395347", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nOS: Microsoft Windows 10 Pro 10.0.14393\r\nAppc core: 6.0.0-38\r\nAppc NPM: 4.2.8-6\r\nTi SDK: 6.0.0.v20160904203840\r\nLumia 930: 10.0\r\nLumia 520: 8.1\r\n\r\nOriginal title is retained if the titleid does not exist\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-09-05T16:45:13.000+0000", "updated": "2016-09-05T16:45:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }