{"action":"closed","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/23174","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/23174/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/23174/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/23174/events","html_url":"https://github.com/owncloud/core/issues/23174","id":140349004,"number":23174,"title":"No variable sent to listApps method in AppSettingsController","user":{"login":"fengkaijia","id":3523264,"avatar_url":"https://avatars.githubusercontent.com/u/3523264?v=3","gravatar_id":"","url":"https://api.github.com/users/fengkaijia","html_url":"https://github.com/fengkaijia","followers_url":"https://api.github.com/users/fengkaijia/followers","following_url":"https://api.github.com/users/fengkaijia/following{/other_user}","gists_url":"https://api.github.com/users/fengkaijia/gists{/gist_id}","starred_url":"https://api.github.com/users/fengkaijia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengkaijia/subscriptions","organizations_url":"https://api.github.com/users/fengkaijia/orgs","repos_url":"https://api.github.com/users/fengkaijia/repos","events_url":"https://api.github.com/users/fengkaijia/events{/privacy}","received_events_url":"https://api.github.com/users/fengkaijia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/needs%20info","name":"needs info","color":"0b02e1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-12T05:34:36Z","updated_at":"2016-03-15T08:20:06Z","closed_at":"2016-03-15T08:20:06Z","body":"### Steps to reproduce\r\n1. Visit Apps Page https://OWNCLOUD/index.php/settings/apps\r\n2. Click any tab but \"Enabled\", e.g. \"Not enabled\"\r\n\r\n### Expected behaviour\r\nApps matching the tab name, e.g. \"Game\", displayed.\r\n\r\n### Actual behaviour\r\nIt still displays all enabled apps.\r\n\r\n### Server configuration\r\n**Operating system**:\r\nUbuntu 14.04\r\n**Web server:**\r\nNginx\r\n**Database:**\r\nMySQL\r\n**PHP version:**\r\n5.5\r\n**ownCloud version:**\r\nSorry for late report. This happened a long long time ago, at first I just thought it was a cache issue, only till now (9.0) I debug the code.\r\n\r\nAfter a few debug, I found the method controlling the listing of apps -- [listApps](https://github.com/owncloud/core/blob/master/settings/controller/appsettingscontroller.php#L189) function in appsettingscontroller.php didn't recieve any arguments when it's called from ```https://OWNCLOUD/index.php/settings/apps/list?category=???&includeUpdateInfo=?```, e.g. ```https://OWNCLOUD/index.php/settings/apps/list?category=tool&includeUpdateInfo=0```.\r\n\r\nSo the default value of two parameters: ```$category = '', $includeUpdateInfo = true``` is used. When ```$category``` is an empty string, ```$this->getCategory('')``` returned the default value ```self::CAT_ENABLED``` which lead to ```listApps``` method returning apps in the \"Enabled\" tab.\r\n\r\nUnfortunately, I was unable to find the cause of this."}}