Skip to content

Commit

Permalink
Fix for: Can't choose module using editor plugin if you search first (#…
Browse files Browse the repository at this point in the history
…20005)

* fixit

* cs

* Update modal.php
  • Loading branch information
Dimitri Grammatikogianni authored and Michael Babker committed Apr 7, 2018
1 parent a28c562 commit de43129
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,16 @@
$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
$editor = JFactory::getApplication()->input->get('editor', '', 'cmd');
$link = 'index.php?option=com_modules&view=modules&layout=modal&tmpl=component&' . JSession::getFormToken() . '=1';

if (!empty($editor))
{
$link = 'index.php?option=com_modules&view=modules&layout=modal&tmpl=component&editor=' . $editor . '&' . JSession::getFormToken() . '=1';
}
?>
<div class="container-popup">

<form action="<?php echo JRoute::_('index.php?option=com_modules&view=modules&layout=modal&tmpl=component&' . JSession::getFormToken() . '=1'); ?>" method="post" name="adminForm" id="adminForm">
<form action="<?php echo JRoute::_($link); ?>" method="post" name="adminForm" id="adminForm">

<?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?>
<?php if ($this->total > 0) : ?>
Expand Down Expand Up @@ -123,6 +129,7 @@

<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="editor" value="<?php echo $editor; ?>" />
<?php echo JHtml::_('form.token'); ?>

</form>
Expand Down

0 comments on commit de43129

Please sign in to comment.