{ "id": "171318", "key": "TIMOB-25866", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-06-21T17:09:37.000+0000", "created": "2018-03-14T10:18:30.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SearchBar", "ios" ], "versions": [], "issuelinks": [ { "id": "56456", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "171273", "key": "TIMOB-25850", "fields": { "summary": "iOS: SearchBar doesn't show Bookmark button when set on creation in TableView", "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 } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-10-01T12:32:33.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "In TI.UI.SearchBar, the getters are not implemented properly. It simply returns the value which is set in it's proxy, not the actual native value. Ideally, it should return the value by fetching it natively from the underlaying UISearchBar. Currently, for whatever you set the value of property, it will return same even though that value is not passed to search-bar.", "attachment": [], "flagged": false, "summary": "iOS : TiUISearchBar getter is returning value from proxy not from searchbar view ", "creator": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "435751", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/9947\r\n\r\nTest Case - \r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\n \r\nvar searchBar = Titanium.UI.createSearchBar({\r\n\ttop: 40,\r\n showBookmark: true,\r\n showCancel: true,\r\n color : 'blue',\r\n hintTextColor: 'red',\r\n barColor: 'gray',\r\n hintText: 'Search text',\r\n value: 'This is search bar getter test',\r\n keyboardType: Ti.UI.KEYBOARD_TYPE_NUMBER_PAD,\r\n autocorrect: true,\r\n autocapitalization : Ti.UI.TEXT_AUTOCAPITALIZATION_ALL,\r\n keyboardAppearance: Ti.UI.KEYBOARD_APPEARANCE_LIGHT,\r\n prompt: 'prompt value',\r\n style: Ti.UI.iOS.SEARCH_BAR_STYLE_PROMINENT,\r\n});\r\n \r\nwin.addEventListener('click', function(e){\r\n\tTi.API.info(searchBar.showBookmark);\r\n Ti.API.info(searchBar.showCancel);\r\n Ti.API.info(searchBar.color);\r\n Ti.API.info(searchBar.hintTextColor);\r\n Ti.API.info(searchBar.barColor);\r\n\tTi.API.info(searchBar.hintText);\r\n Ti.API.info(searchBar.value);\r\n Ti.API.info(searchBar.keyboardType);\r\n Ti.API.info(searchBar.autocorrect);\r\n\tTi.API.info(searchBar.autocapitalization);\r\n\tTi.API.info(searchBar.keyboardAppearance);\r\n\tTi.API.info(searchBar.prompt);\r\n\tTi.API.info(searchBar.style);\r\n});\r\nwin.add(searchBar);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-20T08:40:12.000+0000", "updated": "2018-03-20T09:44:29.000+0000" }, { "id": "438597", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This can be tested together with TIMOB-25850.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-06-21T17:11:52.000+0000", "updated": "2018-06-21T17:11:52.000+0000" }, { "id": "442195", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Verified fix in SDK version: {{7.5.0.v20180928103802}}. {{TiUISearchBar}} is now returning the correct value from {{searchbar}} view.\r\n\r\n*Test Environment*\r\n{code:java}\r\nAPPC Studio: 5.1.0.201808080937\r\niPhone 6 (12.0)\r\nAPPC CLI: 7.0.7-master.4\r\nOperating System Name: Mac OS Mojave\r\nOperating System Version: 10.14\r\nNode.js Version: 8.9.1\r\nXcode 10.0\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-01T12:32:17.000+0000", "updated": "2018-10-01T12:32:17.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }