{ "id": "107573", "key": "TIMOB-12244", "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": "14161", "description": "Release 3.0.1", "name": "Release 3.0.1", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14811", "description": "2013 Sprint 01 API", "name": "2013 Sprint 01 API", "archived": true, "released": true, "releaseDate": "2013-01-14" }, { "id": "14804", "description": "2013 Sprint 01", "name": "2013 Sprint 01", "archived": true, "released": true, "releaseDate": "2013-01-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-01-24T07:08:52.000+0000", "created": "2013-01-08T11:53:53.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "Regression", "api", "module_tabgroup", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "24267", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "102564", "key": "TIMOB-11986", "fields": { "summary": "iOS: App crashes with: \"A view can only be associated with at most one view controller at a time\"", "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 } } } }, { "id": "24265", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "102564", "key": "TIMOB-11986", "fields": { "summary": "iOS: App crashes with: \"A view can only be associated with at most one view controller at a time\"", "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-01-24T07:08:52.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": "Setting active tab on a previously opened tab group does not work.\r\nTest Code \r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white',\r\n\tlayout:'vertical'\r\n})\r\n\r\nvar b1 = Ti.UI.createButton({\r\n\ttitle:'Open activeTab 1',\r\n\ttop:5\r\n})\r\nvar b2 = Ti.UI.createButton({\r\n\ttitle:'Open activeTab 2',\r\n\ttop:5\r\n})\r\nvar b3 = Ti.UI.createButton({\r\n\ttitle:'Open activeTab tab1',\r\n\ttop:5\r\n})\r\nvar b4 = Ti.UI.createButton({\r\n\ttitle:'Open activeTab tab2',\r\n\ttop:5\r\n})\r\nvar b5 = Ti.UI.createButton({\r\n\ttitle:'Open ',\r\n\ttop:5\r\n})\r\nwin.add(b1);\r\nwin.add(b2);\r\nwin.add(b3);\r\nwin.add(b4);\r\nwin.add(b5);\r\nvar tabGrp = Ti.UI.createTabGroup();\r\n\r\nvar win0 = Ti.UI.createWindow({\r\n\ttitle:'TAB 0',\r\n\tbackgroundColor:'white'\r\n})\r\n\r\nvar tab0 = Ti.UI.createTab({\r\n\twindow:win0,\r\n\ttitle:'tab0'\r\n})\r\n\r\nvar closeBtn0 = Ti.UI.createButton({\r\n\ttitle:'CLOSE TABGRP'\r\n})\r\n\r\nwin0.add(closeBtn0);\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n\ttitle:'TAB 1',\r\n\tbackgroundColor:'white'\r\n})\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n\twindow:win1,\r\n\ttitle:'tab1'\r\n})\r\n\r\nvar closeBtn1 = Ti.UI.createButton({\r\n\ttitle:'CLOSE TABGRP'\r\n})\r\n\r\nwin1.add(closeBtn1);\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n\ttitle:'TAB 2',\r\n\tbackgroundColor:'white'\r\n})\r\n\r\nvar tab2 = Ti.UI.createTab({\r\n\twindow:win2,\r\n\ttitle:'tab2'\r\n})\r\n\r\nvar closeBtn2 = Ti.UI.createButton({\r\n\ttitle:'CLOSE TABGRP'\r\n})\r\n\r\nwin2.add(closeBtn2);\r\n\r\n\r\ntabGrp.tabs = [tab0,tab1,tab2];\r\n\r\nb1.addEventListener('click',function(){\r\n\ttabGrp.activeTab = 1;\r\n\ttabGrp.open();\r\n})\r\n\r\nb2.addEventListener('click',function(){\r\n\ttabGrp.activeTab = 2;\r\n\ttabGrp.open();\r\n})\r\n\r\nb3.addEventListener('click',function(){\r\n\ttabGrp.activeTab = tab1;\r\n\ttabGrp.open();\r\n})\r\n\r\nb4.addEventListener('click',function(){\r\n\ttabGrp.activeTab = tab2;\r\n\ttabGrp.open();\r\n})\r\n\r\nb5.addEventListener('click',function(){\r\n\ttabGrp.open();\r\n})\r\n\r\ncloseBtn0.addEventListener('click',function(){\r\n\ttabGrp.close();\r\n})\r\n\r\ncloseBtn1.addEventListener('click',function(){\r\n\ttabGrp.close();\r\n})\r\n\r\ncloseBtn2.addEventListener('click',function(){\r\n\ttabGrp.close();\r\n})\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS; TabGroup.setActiveTab() calls ignored on a previously opened tabgroup", "creator": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "233566", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull against master https://github.com/appcelerator/titanium_mobile/pull/3673", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-08T12:05:57.000+0000", "updated": "2013-01-08T12:05:57.000+0000" }, { "id": "233568", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3_0_X https://github.com/appcelerator/titanium_mobile/pull/3674", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-08T12:10:08.000+0000", "updated": "2013-01-08T12:10:08.000+0000" }, { "id": "233583", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "CR & FR master and 30x backprot PR ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-08T13:49:58.000+0000", "updated": "2013-01-08T13:49:58.000+0000" }, { "id": "234703", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "tested with: \r\nSDK:3.1.0.v20130114171802, 3.0.1.v20130116154658\r\nStudio:3.0.1.201212181159\r\nDevice: iPad2(v5.1)\r\n\r\ntabGroup.setActivTab() call is not ignored on a previously opened tabgroup.\r\n\r\n", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-17T01:29:55.000+0000", "updated": "2013-01-17T01:29:55.000+0000" }, { "id": "235691", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-24T07:06:35.000+0000", "updated": "2013-01-24T07:06:35.000+0000" }, { "id": "235692", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-24T07:08:33.000+0000", "updated": "2013-01-24T07:08:33.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }