{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/7570","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/7570/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/7570/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/7570/events","html_url":"https://github.com/cakephp/cakephp/pull/7570","id":111962274,"number":7570,"title":"Flash Component was not handling plugin option","user":{"login":"gmponos","id":5675248,"avatar_url":"https://avatars.githubusercontent.com/u/5675248?v=3","gravatar_id":"","url":"https://api.github.com/users/gmponos","html_url":"https://github.com/gmponos","followers_url":"https://api.github.com/users/gmponos/followers","following_url":"https://api.github.com/users/gmponos/following{/other_user}","gists_url":"https://api.github.com/users/gmponos/gists{/gist_id}","starred_url":"https://api.github.com/users/gmponos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmponos/subscriptions","organizations_url":"https://api.github.com/users/gmponos/orgs","repos_url":"https://api.github.com/users/gmponos/repos","events_url":"https://api.github.com/users/gmponos/events{/privacy}","received_events_url":"https://api.github.com/users/gmponos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/51","html_url":"https://github.com/cakephp/cakephp/milestones/2.8.0","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/51/labels","id":1203674,"number":51,"title":"2.8.0","description":"New features and a backwards compatible API changes for 2.x","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":18,"state":"open","created_at":"2015-07-12T01:55:56Z","updated_at":"2015-10-17T14:01:29Z","due_on":"2016-01-02T05:00:00Z","closed_at":null},"comments":2,"created_at":"2015-10-17T12:57:35Z","updated_at":"2015-10-17T14:11:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cakephp/cakephp/pulls/7570","html_url":"https://github.com/cakephp/cakephp/pull/7570","diff_url":"https://github.com/cakephp/cakephp/pull/7570.diff","patch_url":"https://github.com/cakephp/cakephp/pull/7570.patch"},"body":"In the documentation of Cakephp 2.x it says:\r\n\r\n> If you are using the __call() magic method, the element option will always be replaced. In order to retrieve a specific element from a plugin, you should set the plugin parameter. For example:\r\n\r\nSo in the function below I can't see the plugin option to be handled and I tried it my self like this:\r\n\r\n        $this->Flash->set('test', ['plugin' => 'MyPlugin']);\r\n\r\nand it didn't work.\r\n\r\nhttps://github.com/cakephp/cakephp/blob/2.8/lib/Cake/Controller/Component/FlashComponent.php#L71\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/148918293","html_url":"https://github.com/cakephp/cakephp/pull/7570#issuecomment-148918293","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/7570","id":148918293,"user":{"login":"gmponos","id":5675248,"avatar_url":"https://avatars.githubusercontent.com/u/5675248?v=3","gravatar_id":"","url":"https://api.github.com/users/gmponos","html_url":"https://github.com/gmponos","followers_url":"https://api.github.com/users/gmponos/followers","following_url":"https://api.github.com/users/gmponos/following{/other_user}","gists_url":"https://api.github.com/users/gmponos/gists{/gist_id}","starred_url":"https://api.github.com/users/gmponos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmponos/subscriptions","organizations_url":"https://api.github.com/users/gmponos/orgs","repos_url":"https://api.github.com/users/gmponos/repos","events_url":"https://api.github.com/users/gmponos/events{/privacy}","received_events_url":"https://api.github.com/users/gmponos/received_events","type":"User","site_admin":false},"created_at":"2015-10-17T14:11:18Z","updated_at":"2015-10-17T14:11:18Z","body":"Damn, the example I wrote is wrong. I copy pasted a wrong line of code while I was testing this issue. \r\n\r\nThe correct of course is as you said using the `__call` function like:\r\n\r\n        $this->Flash->success('test', ['plugin' => \"MyPlugin\"]);\r\n\r\nBut it doesn't work. Does it work for you?"}}