Commit 7c58a477 authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

using urlencode to query string

simplifying name of filter
parent 2a6ea2e9
......@@ -52,7 +52,7 @@ $searchform = pieform(array(
'options' => array(
'notmember' => get_string('groupsnotin'),
'member' => get_string('groupsimin'),
'allgroups' => get_string('allgroups')
'all' => get_string('allgroups')
),
'defaultvalue' => $filter
),
......@@ -69,7 +69,7 @@ if ($filter == 'member') {
else if ($filter == 'notmember') {
$type = 'notmember';
}
else if ($filter == 'allgroups'){
else if ($filter == 'all'){
$type = 'all';
}
......@@ -129,7 +129,7 @@ $pagination = build_pagination(array(
));
function search_submit(Pieform $form, $values) {
redirect('/group/find.php?filter=' . $values['filter'] . (isset($values['query']) ? '&query=' . $values['query'] : ''));
redirect('/group/find.php?filter=' . $values['filter'] . (isset($values['query']) ? '&query=' . urlencode($values['query']) : ''));
}
$smarty = smarty();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment