Skip to content

Commit ab46f37

Browse files
committed
fixed some random rendering issues in the search results
1 parent b07af45 commit ab46f37

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

controllers/mobile/reports.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ public function search($town = false)
102102
// if we don't get location there will be no results rendered
103103
if (!$location) {
104104
$this->template->content->have_results = false;
105+
$this->template->content->filter = true;
106+
$this->template->content->town = $town;
105107
$this->template->content->category = 0;
108+
$this->template->content->categories = array();
106109
return;
107110
}
108111

views/mobile/reports.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<?php if (!empty($filter)) { ?>
1717
<form action=<?php echo url::site() . '/mobile/reports/search' ?> method="get" accept-charset="utf-8">
1818
<div><label for="town">Your Area</label>
19-
<input type="text" name="town" value="<?php echo isset($_GET['town']) ? $_GET['town'] : ''; ?>"></div>
19+
<input type="text" name="town" value="<?php echo $town ?>"></div>
2020

2121
<div><label for="distance">Distance</label>
2222
<select name="distance" id="distance">

0 commit comments

Comments
 (0)