Skip to content

Commit

Permalink
Fixed "Set ItemID" not working
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenanh91 committed Feb 4, 2016
1 parent 3ebcbe0 commit 83ba297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mod_finder/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function getGetFields($route = null, $paramItem = 0)
// Add a field for Itemid if we need one.
if ($needId)
{
$id = JFactory::getApplication()->input->get('Itemid', '0', 'int');
$id = $paramItem ? $paramItem : JFactory::getApplication()->input->get('Itemid', '0', 'int');
$fields[] = '<input type="hidden" name="Itemid" value="' . $id . '" />';
}

Expand Down

0 comments on commit 83ba297

Please sign in to comment.