{"action":"opened","issue":{"url":"https://api.github.com/repos/infoweb-internet-solutions/yii2-cms-menu/issues/23","labels_url":"https://api.github.com/repos/infoweb-internet-solutions/yii2-cms-menu/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/infoweb-internet-solutions/yii2-cms-menu/issues/23/comments","events_url":"https://api.github.com/repos/infoweb-internet-solutions/yii2-cms-menu/issues/23/events","html_url":"https://github.com/infoweb-internet-solutions/yii2-cms-menu/issues/23","id":103037033,"number":23,"title":"Fix: remove possible warning","user":{"login":"Mr-Maslo","id":13964477,"avatar_url":"https://avatars.githubusercontent.com/u/13964477?v=3","gravatar_id":"","url":"https://api.github.com/users/Mr-Maslo","html_url":"https://github.com/Mr-Maslo","followers_url":"https://api.github.com/users/Mr-Maslo/followers","following_url":"https://api.github.com/users/Mr-Maslo/following{/other_user}","gists_url":"https://api.github.com/users/Mr-Maslo/gists{/gist_id}","starred_url":"https://api.github.com/users/Mr-Maslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mr-Maslo/subscriptions","organizations_url":"https://api.github.com/users/Mr-Maslo/orgs","repos_url":"https://api.github.com/users/Mr-Maslo/repos","events_url":"https://api.github.com/users/Mr-Maslo/events{/privacy}","received_events_url":"https://api.github.com/users/Mr-Maslo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-25T14:38:58Z","updated_at":"2015-08-25T14:38:58Z","closed_at":null,"body":"In class MenuItemController in method findActiveMenu if no valid active menu-id is set call Menu::findone() is incorrect and causes the warning: **\"PHPWarning: Missing argument 1 for yii\\db\\BaseActiveRecord::findOne(), called in .../MenuItemController.php on line 496 and defined\"** because method ActiveRecord::findone has 1 required argument.\r\n\r\n\r\n\r\n\r\nCorrect call is: Menu::find()->one()\r\n\r\n"}}