Patch for the quick search (search box on the homepage) - includes searching through notes and projects tasks. It will work only when 'Project' tab is enabled.


(Version 4.0.1d)


modules/ProjectTask/ListView.php:95


OLD:

Code:
	$GLOBALS['log']->info("Here is the where clause for the list view: $where");
}

$search_form = new XTemplate('modules/ProjectTask/SearchForm.html');

$mod_strings = return_module_language($current_language,
	'ProjectTask');

// the title label and arrow pointing to the module search form
NEW:

Code:
	$GLOBALS['log']->info("Here is the where clause for the list view: $where");
}

$mod_strings = return_module_language($current_language, 'ProjectTask');

if(empty($_REQUEST['search_form']))
{
	$search_form = new XTemplate('modules/ProjectTask/SearchForm.html');

	// the title label and arrow pointing to the module search form

============


modules/ProjectTask/ListView.php:145

OLD:

Code:
$search_form->parse('main');
$search_form->out('main');

///
/// take care of output of rest of listview
///
NEW:

Code:
	$search_form->parse('main');
	$search_form->out('main');
}

///
/// take care of output of rest of listview
///

============


modules/Home/UnifiedSearch.php:38

OLD:

Code:
require_once('modules/Project/Project.php');
global $mod_strings, $modListHeader;
NEW:

Code:
require_once('modules/Project/Project.php');
require_once('modules/Notes/Note.php');
require_once('modules/ProjectTask/ProjectTask.php');
global $mod_strings, $modListHeader;
=========


modules/Home/UnifiedSearch.php:102

OLD:

Code:
		include ("modules/Project/ListView.php");
	}
NEW:

Code:
		include ("modules/Project/ListView.php");
	}

	if(array_key_exists('Project', $modListHeader))
	{
		//get project tasks
		$where = ProjectTask::build_generic_where_clause($_REQUEST['query_string']);
		echo "<table><td><tr>\n";
		include ("modules/ProjectTask/ListView.php");
	}

	if(array_key_exists('Project', $modListHeader))
	{
		//get notes
		$where = Note::build_generic_where_clause($_REQUEST['query_string']);
		echo "<table><td><tr>\n";
		$mod_strings = return_module_language($current_language, 'Notes');
		include ("modules/Notes/ListView.php");
	}