Skip to content
This repository has been archived by the owner on Feb 26, 2025. It is now read-only.

Commit

Permalink
Issue 601: Keep search parameters in resource module
Browse files Browse the repository at this point in the history
 - Keep fund parameter
  • Loading branch information
veggiematts committed Jan 30, 2020
1 parent c2c6212 commit 5ef60ce
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions resources/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,12 @@
$fundCodeLength = strlen($fund['fundCode']) + 3;
$combinedLength = strlen($fund['shortName']) + $fundCodeLength;
$fundName = ($combinedLength <=50) ? $fund['shortName'] : substr($fund['shortName'],0,49-$fundCodeLength) . "&hellip;";
$fundName .= " [" . $fund['fundCode'] . "]</option>";
echo "<option value='" . $fund['fundID'] . "'>" . $fundName . "</option>";
$fundName .= " [" . $fund['fundCode'] . "]";
if (isset($search['fund']) && $search['fund'] == $fund['fundID']) {
echo "<option value='" . $fund['fundID'] . "' selected='selected'>" . $fundName . "</option>";
} else {
echo "<option value='" . $fund['fundID'] . "'>" . $fundName . "</option>";
}
}

?>
Expand Down

0 comments on commit 5ef60ce

Please sign in to comment.