{ "id": "116242", "key": "TIMOB-14305", "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": "2013-06-20T09:15:18.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-3.1.2", "reprod" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:15.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Label displays incorrect text when textid property of label is assigned with key that is missing and does not update the label value when assigned with correct key in textid.\r\n\r\nThis is not Regression because issue appeared in 3.1.1GA also.\r\n\r\nSteps To Reproduce:\r\n1.Create an app with code below and copy paste the attached file in the created app after downloading.\r\n2.Click on the view\r\n\r\nExpected Result:\r\n1.Window must get opened with no text in it.\r\n2.Must get the updated text on label \"Welcome to Kitchen Sink for Titanium updated\"\r\n\r\nActual Result:\r\n1.Window get opened with text as \"Testlabeltextid\" in it.\r\n2.Label does not get updated with \"Welcome to Kitchen Sink for Titanium updated\" value. It remains \"Testlabeltextid\".\r\n\r\n\r\n{code}\r\n\r\n// START: APM service code injection\r\n// Require the apm module\r\nvar apm = undefined;\r\ntry {\r\napm = require(\"com.appcelerator.apm\");\r\n}\r\ncatch (e) {\r\nTi.API.info(\"com.appcelerator.apm module is not available\");\r\n}\r\n\r\n// Initialize the module if it is defined\r\napm && apm.init();\r\n// END: APM code injection\r\n\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n\r\nvar win = Titanium.UI.createWindow({\r\n\tbackgroundColor : 'white',\r\n}); \r\n\r\nvar view = Ti.UI.createView({\r\n\ttop : 0,\r\n\theight : 80,\r\n\tright : 0,\r\n\tleft : 0\r\n});\r\n \r\nvar label = Ti.UI.createLabel({\r\n font:{fontSize:30,fontFamily:'Helvetica Neue'},\r\n color:'red',\r\n left:0,\r\n width:'100%',\r\n borderColor:'red',\r\n borderWidth:'3',\r\n textid:'Testlabeltextid',// \"Testlabeltextid\" key does not exists in strings.xml so it must not display any text on label but it displays\"Testlabeltextid\" on label.\r\n right:'10%'\r\n \r\n});\r\n\r\nview.add(label);\r\n\r\nview.addEventListener('click', function(e) {\r\n\t\r\n\tlabel.textid = 'welcomeupdate';// it must update the labels text but it does not update the label text.\r\n\tTi.API.info('updated textid of label:'+label.textid);\r\n});\r\n \r\nwin.add(view); \r\nwin.open();\r\n\r\nif (Ti.Platform.osname === 'iphone' || Ti.Platform.osname === 'ipad')\r\n{\r\n var touchTestModule = undefined;\r\n try\r\n {\r\n touchTestModule = require(\"com.soasta.touchtest\");\r\n }\r\n catch (tt_exception)\r\n {\r\n Ti.API.error(\"com.soasta.touchest module is required\");\r\n }\r\n\r\n var cloudTestURL = Ti.App.getArguments().url;\r\n if (cloudTestURL != null)\r\n {\r\n // The URL will be null if we don't launch through TouchTest.\r\n touchTestModule && touchTestModule.initTouchTest(cloudTestURL);\r\n }\r\n\r\n Ti.App.addEventListener('resumed',function(e)\r\n {\r\n // Hook the resumed from background\r\n var cloudTestURL = Ti.App.getArguments().url;\r\n if (cloudTestURL != null)\r\n {\r\n touchTestModule && touchTestModule.initTouchTest(cloudTestURL);\r\n }\r\n });\r\n}\r\n\r\n{code}\r\n", "attachment": [ { "id": "40055", "filename": "i18n.zip", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-20T09:15:18.000+0000", "size": 545, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Label: Label displays incorrect text when textid property of label is assigned with key that is missing and does not update the label value when assigned with correct key in textid.", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Device: simulator 6.0\r\nSDK:3.1.2.v20130619101604\r\nAppcelerator Studio: 3.1.1.201306131423\r\nOS: OSX 10.8\r\nacs:1.0.3\r\nalloy:1.1.3\r\nnpm:1.2.14\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.1", "comment": { "comments": [ { "id": "422257", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170609091155\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-19T17:49:17.000+0000", "updated": "2017-06-19T17:49:17.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }