?
Referenced as Pull Request for: # 9072
avatar nguyenanh91
nguyenanh91
4 Feb 2016

Whatever set in that field, search results will always be displayed with the ItemID of homepage menu (When there's no menuitem of com_finder in the menu system)

I changed the code of modules/mod_finder/helper.php at line 48:

if ($needId)
{
    $id = JFactory::getApplication()->input->get('Itemid', '0', 'int');
    $fields[] = '<input type="hidden" name="Itemid" value="' . $id . '" />';
}

to:

if ($needId)
{
    $id = $paramItem ? $paramItem : JFactory::getApplication()->input->get('Itemid', '0', 'int');
    $fields[] = '<input type="hidden" name="Itemid" value="' . $id . '" />';
}
avatar nguyenanh91 nguyenanh91 - open - 4 Feb 2016
avatar brianteeman brianteeman - change - 5 Feb 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-02-05 09:58:59
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 5 Feb 2016

Closing as we have a PR #9072

@nguyenminh797 You do not need to create an Issue on the tracker and a pull request on github. Just create the pull request and it will be automagically on the issue tracker


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9071.

avatar brianteeman brianteeman - close - 5 Feb 2016
avatar brianteeman brianteeman - close - 5 Feb 2016
avatar brianteeman brianteeman - change - 22 Apr 2016
Labels Added: ?

Add a Comment

Login with GitHub to post a comment