{ "id": "100270", "key": "TIMOB-10731", "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": "15576", "description": "2013 Sprint 16", "name": "2013 Sprint 16", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "15578", "description": "2013 Sprint 16 API", "name": "2013 Sprint 16 API", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-11-14T18:00:39.000+0000", "created": "2012-08-31T08:02:53.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-14T19:24:12.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "when trying to set alertDialog.buttonNames = null; after it has already been set to some custom values (for example alertDialog.buttonNames = ['One', 'Two','Three']) - alertDialog still has the custom buttons on it.\r\nExpected result should be: have the default buttons on alert dialog", "attachment": [], "flagged": false, "summary": "BlackBerry: AlertDialog.buttonNames setting bug ", "creator": { "name": "hzakaryan", "key": "hzakaryan", "displayName": "Hayk Zakaryan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hzakaryan", "key": "hzakaryan", "displayName": "Hayk Zakaryan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "BlackBerry Simulator", "comment": { "comments": [ { "id": "264777", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/144", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-08-02T19:20:40.000+0000", "updated": "2013-08-02T19:20:40.000+0000" }, { "id": "279303", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\r\n\r\nHad some query regarding the bug hence could not close it.\r\n\r\nFirstly like to mention according to appcelerator doc alertDialog's buttonNames property is a property which needs to be defined at time of creation only.\r\nSo we cannot change the value at run time.\r\n\r\nHence I have checked the alertDialog with two different mentioned scenarios above:\r\n\r\nScenario 1(with Custom Values):\r\n{code}\r\n var dialog = Ti.UI.createAlertDialog({\r\n cancel: 1,\r\n buttonNames: [confirm,help,cancel],\r\n message: 'Would you like to delete the file?',\r\n title: 'Delete'\r\n });\r\n{code}\r\n\r\nResult:Getting the expected alertDialog with three buttons.\r\n\r\nScenario 2(with null value)\r\n{code}\r\n var dialog = Ti.UI.createAlertDialog({\r\n cancel: 1,\r\n buttonNames: null,\r\n message: 'Would you like to delete the file?',\r\n title: 'Delete'\r\n });\r\n{code}\r\n\r\nResult: Getting the Standard alertDialog with one button(OK).\r\n\r\nSo this is only which is expected from the issue raised. Or some other behavior is expected. Please confirm.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-13T06:47:09.000+0000", "updated": "2013-11-13T06:47:09.000+0000" }, { "id": "279347", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "To clarify, this is expected behavior. Just like in iOS, at least one button will be displayed in BB10. If null is passed in, the default \"ok\" button will show.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-13T17:21:00.000+0000", "updated": "2013-11-13T17:21:00.000+0000" }, { "id": "279597", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\nMac OSX 10.9 Mavericks\nTitanium Studio, build: 3.2.0.201311140700\nTitanium SDK, build: 3.2.0.v20131113183932\nCLI: 3.2.0\nAlloy: 1.3.0\nBlackBerry Simulator: 10.2.0.1791\n\nAlert dialog shows correct buttons. OK button shows when null is passed in.\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-14T19:24:06.000+0000", "updated": "2013-11-14T19:24:06.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }