{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/19712","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/19712/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/19712/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/19712/events","html_url":"https://github.com/joomla/joomla-cms/issues/19712","id":298002017,"number":19712,"title":"JLoader::import with same key ignores the file even if the base is different","user":{"login":"corejoomla","id":4133237,"avatar_url":"https://avatars2.githubusercontent.com/u/4133237?v=4","gravatar_id":"","url":"https://api.github.com/users/corejoomla","html_url":"https://github.com/corejoomla","followers_url":"https://api.github.com/users/corejoomla/followers","following_url":"https://api.github.com/users/corejoomla/following{/other_user}","gists_url":"https://api.github.com/users/corejoomla/gists{/gist_id}","starred_url":"https://api.github.com/users/corejoomla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corejoomla/subscriptions","organizations_url":"https://api.github.com/users/corejoomla/orgs","repos_url":"https://api.github.com/users/corejoomla/repos","events_url":"https://api.github.com/users/corejoomla/events{/privacy}","received_events_url":"https://api.github.com/users/corejoomla/received_events","type":"User","site_admin":false},"labels":[{"id":138443932,"url":"https://api.github.com/repos/joomla/joomla-cms/labels/No%20Code%20Attached%20Yet","name":"No Code Attached Yet","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-17T12:39:40Z","updated_at":"2018-03-03T16:58:43Z","closed_at":"2018-03-03T16:58:43Z","author_association":"NONE","body":"### Steps to reproduce the issue\r\nLoad two different files with the different base locations but with same name.\r\n\r\nJLoader::import('somemodel', JPATH_ROOT.'/components/com_mycomponent1/models');\r\nJLoader::import('somemodel', JPATH_ROOT.'/components/com_mycomponent2/models');\r\n\r\n### Expected result\r\nModels from each component are loaded and can be used.\r\nJModelLegacy::getInstance( 'somemodel', 'MyComponent2Model' );  should result model object.\r\n\r\n### Actual result\r\nJModelLegacy::getInstance( 'somemodel', 'MyComponent2Model' ); results in false value\r\n\r\n### System information (as much as possible)\r\nJoomla 3.8.5"},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/370162734","html_url":"https://github.com/joomla/joomla-cms/issues/19712#issuecomment-370162734","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/19712","id":370162734,"user":{"login":"corejoomla","id":4133237,"avatar_url":"https://avatars2.githubusercontent.com/u/4133237?v=4","gravatar_id":"","url":"https://api.github.com/users/corejoomla","html_url":"https://github.com/corejoomla","followers_url":"https://api.github.com/users/corejoomla/followers","following_url":"https://api.github.com/users/corejoomla/following{/other_user}","gists_url":"https://api.github.com/users/corejoomla/gists{/gist_id}","starred_url":"https://api.github.com/users/corejoomla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corejoomla/subscriptions","organizations_url":"https://api.github.com/users/corejoomla/orgs","repos_url":"https://api.github.com/users/corejoomla/repos","events_url":"https://api.github.com/users/corejoomla/events{/privacy}","received_events_url":"https://api.github.com/users/corejoomla/received_events","type":"User","site_admin":false},"created_at":"2018-03-03T16:58:42Z","updated_at":"2018-03-03T16:58:42Z","author_association":"NONE","body":"Thanks for the clarifications. This issue can be closed.\r\n"}}
{"actor":{"display_login":"corejoomla"}}