Skip to content

Commit

Permalink
Smart Search (finder) module (#23560)
Browse files Browse the repository at this point in the history
### Expected
The module  form should be wrapped in a div that a class suffix can be applied to

### Actual
The module div is wrapped in the form tag

### Changes
This simple PR switches the form and the div - making it the same structure as other modules - see mod_search
  • Loading branch information
brianteeman authored and rdeutz committed Jan 19, 2019
1 parent 98da486 commit e0193e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/mod_finder/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@
JFactory::getDocument()->addScriptDeclaration($script);
?>

<form id="mod-finder-searchform<?php echo $module->id; ?>" action="<?php echo JRoute::_($route); ?>" method="get" class="form-search">
<div class="finder<?php echo $suffix; ?>">
<div class="finder<?php echo $suffix; ?>">
<form id="mod-finder-searchform<?php echo $module->id; ?>" action="<?php echo JRoute::_($route); ?>" method="get" class="form-search">
<?php
// Show the form fields.
echo $output;
Expand All @@ -164,5 +164,5 @@
</div>
<?php endif; ?>
<?php echo modFinderHelper::getGetFields($route, (int) $params->get('set_itemid', 0)); ?>
</div>
</form>
</form>
</div>

0 comments on commit e0193e9

Please sign in to comment.