if search keyword is empty, show all list

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12410 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-12-17 08:45:01 +00:00
parent de2e386980
commit bbb5ba847f
2 changed files with 7 additions and 1 deletions

View file

@ -126,6 +126,12 @@ class pointModel extends point
$search_target = trim(Context::get('search_target'));
$search_keyword = trim(Context::get('search_keyword'));
// if search keyword is emtpy, show all list
if(!$search_keyword)
{
unset($args, $search_target);
}
if($search_target && $search_keyword)
{
switch($search_target)