{ "id": "174435", "key": "AC-6436", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2019-12-26T15:03:45.000+0000", "created": "2019-11-18T13:28:38.000+0000", "labels": [ "8.3.0.v20191115075757" ], "versions": [], "issuelinks": [], "assignee": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2019-12-26T15:03:45.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Ti.App.Properties.setString('currentCountry', Titanium.Locale.currentCountry.toUpperCase());\r\n\r\n{code:java}\r\n[ERROR] : Script Error {\r\n[ERROR] : column = 77;\r\n[ERROR] : line = 27;\r\n[ERROR] : message = \"undefined is not an object (evaluating 'Titanium.Locale.currentCountry.toUpperCase')\";\r\n[ERROR] : sourceURL = \"file:///Users/sweetpeen/Library/Developer/CoreSimulator/Devices//data/Containers/Bundle/Application//Manager.app/app.js\";\r\n[ERROR] : stack = \" at (/app.js:27:77)\\n at global code(/app.js:461:70)\\n at require@[native code]\\n at (/ti.main.js:17723:8)\\n at loadAsync(/ti.main.js:17649:9)\\n at global code(/ti.main.js:17720:10)\";\r\n[ERROR] : toJSON = \"\";\r\n[ERROR] : }\r\n{code}", "attachment": [], "flagged": false, "summary": "Please check the following bug:", "creator": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "452839", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello!\r\nThanks for reaching to us. Please share the following information:\r\n1. Sample test code and steps to reproduce the issue.\r\n2. In which platform are you getting this issue.\r\n3. Share your appc ti info and full trace log.\r\nThanks\r\n", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2019-11-21T03:34:59.000+0000", "updated": "2019-11-21T03:34:59.000+0000" }, { "id": "452840", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "\r\nBTW: toUpperCase() is not needed since it will return an uppercase value:\r\n\r\n{code:java}\r\nconsole.log(Titanium.Locale.currentCountry);\r\nconsole.log(Titanium.Locale.currentCountry.toUpperCase());\r\n{code}\r\n\r\n\r\nwith 8.3.0.RC (8.3.0.v20191115162504)\r\n\r\n*Android*: works fine\r\n*iOS (simulator)*: currentCountry is undefined, that's why toUpperCase() will throw an error.\r\n\r\n*Workaround*: check for undefined and don't use toUpperCase()", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-11-21T08:41:18.000+0000", "updated": "2019-11-21T08:41:18.000+0000" }, { "id": "452842", "author": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Okay thanks!", "updateAuthor": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-21T10:20:18.000+0000", "updated": "2019-11-21T10:20:18.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }