{"action":"closed","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/9454","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9454/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9454/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9454/events","html_url":"https://github.com/joomla/joomla-cms/issues/9454","id":141572308,"number":9454,"title":"Media manager, image selection with fieldid does not work on Isis","user":{"login":"anibalsanchez","id":385780,"avatar_url":"https://avatars.githubusercontent.com/u/385780?v=3","gravatar_id":"","url":"https://api.github.com/users/anibalsanchez","html_url":"https://github.com/anibalsanchez","followers_url":"https://api.github.com/users/anibalsanchez/followers","following_url":"https://api.github.com/users/anibalsanchez/following{/other_user}","gists_url":"https://api.github.com/users/anibalsanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/anibalsanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anibalsanchez/subscriptions","organizations_url":"https://api.github.com/users/anibalsanchez/orgs","repos_url":"https://api.github.com/users/anibalsanchez/repos","events_url":"https://api.github.com/users/anibalsanchez/events{/privacy}","received_events_url":"https://api.github.com/users/anibalsanchez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/3.5.0-blocker","name":"3.5.0-blocker","color":"fbca04"},{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/No%20Code%20Attached%20Yet","name":"No Code Attached Yet","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2016-03-17T12:45:08Z","updated_at":"2016-03-18T11:57:59Z","closed_at":"2016-03-18T11:57:59Z","body":"#### Steps to reproduce the issue\r\n\r\nI have found the case testing an extension. An image field (that was working in Joomla 3.4) is not working in 3.5.0rc4.\r\n\r\nThis is the button to choose an image for the image field.\r\n\r\n\t\t\t$remoteUrl = 'index.php?option=com_media&amp;view=images&amp;tmpl=component&amp;asset=com_myextension&amp;author=' . JFactory::getUser()->id . '&amp;fieldid=' . $idTag;\r\n\t\t\t$buttonId = $idTag . '_btn';\r\n\r\n\t\t\tJHtml::_('bootstrap.modal');\r\n\t\t\t$control[] = '<a id=\"' . $buttonId . '\" href=\"#' . $idTag . '_modal\" role=\"button\" class=\"btn\" data-toggle=\"modal\" title=\"' . JText::_('JSELECT') . '\">' . JText::_('JSELECT') . '</a>';\r\n\t\t\t$control[] = JHtmlBootstrap::renderModal(\r\n\t\t\t\t\t$idTag . '_modal',\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t'url' => $remoteUrl,\r\n\t\t\t\t\t'title' => JText::_('JSELECT'),\r\n\t\t\t\t\t'height' => '600px', 'width' => '500px')\r\n\t\t\t);\r\n#### Expected result\r\n\r\nSelected image file is inserted in the image field.\r\n\r\n#### Actual result\r\n\r\nNo action\r\n\r\n#### System information (as much as possible)\r\n\r\n3.5.0rc4\r\n\r\n#### Additional comments\r\n\r\nIf Isis view override is removed, then the image selection works OK.\r\n\r\nadministrator/templates/isis/html/com_media/images/default.php\r\n\r\n\t\t\t\t<button class=\"btn btn-success button-save-selected\" type=\"button\" <?php if (!$this->state->get('field.id')):?>onclick=\"ImageManager.onok();window.parent.jModalClose();window.parent.jQuery('.modal.in').modal('hide');\"<?php endif;?> data-dismiss=\"modal\"><?php echo JText::_('COM_MEDIA_INSERT') ?></button>\r\n\r\nadministrator/components/com_media/views/images/tmpl/default.php\r\n\r\n\t\t\t\t<button class=\"btn btn-success button-save-selected\" type=\"button\" onclick=\"<?php if ($this->state->get('field.id')):?>window.parent.jInsertFieldValue(document.getElementById('f_url').value,'<?php echo $this->state->get('field.id');?>');<?php else:?>ImageManager.onok();<?php endif;?\r\n\r\n@dgt41 ... I remember a related PR ...\r\n\r\n\r\n"}}