Skip to content

Commit

Permalink
Fix searching; indention.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Feb 24, 2014
1 parent 76dd86d commit aee554a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions sesha/list.php
Expand Up @@ -18,7 +18,7 @@
/* Init some form vars. This is about the search field in the topbar */
$vars = Horde_Variables::getDefaultVariables();

if ($vars->searchfield || $vars->location) {
if ($vars->searchfield) {
$vars->criteria = $vars->searchfield;
$vars->location = array(Sesha::SEARCH_ID, Sesha::SEARCH_NAME);
}
Expand All @@ -37,16 +37,16 @@
if (Horde_Util::getFormData('criteria')) {
$sesha->highlight = 'sesha-search';
}
$view = new Sesha_View_List(array('templatePath' => SESHA_TEMPLATES . '/view/',
'selectedCategories' => array(Horde_Util::getFormData('category_id')),
'sortDir' => Horde_Util::getFormData('sortdir'),
'sortBy' => Horde_Util::getFormData('sortby'),
'propertyIds' => @unserialize($prefs->getValue('list_properties')),
'what' => $vars->criteria,
'exact' => Horde_Util::getFormData('exact'),
'loc' => $vars->location
)
);
$view = new Sesha_View_List(array(
'templatePath' => SESHA_TEMPLATES . '/view/',
'selectedCategories' => array(Horde_Util::getFormData('category_id')),
'sortDir' => Horde_Util::getFormData('sortdir'),
'sortBy' => Horde_Util::getFormData('sortby'),
'propertyIds' => @unserialize($prefs->getValue('list_properties')),
'what' => $vars->criteria,
'exact' => Horde_Util::getFormData('exact'),
'loc' => $vars->location
));
$page_output->header(array(
'title' => $view->title
));
Expand Down

0 comments on commit aee554a

Please sign in to comment.