Author can now be searched by sort or by name (Carroll, Lewis or Lewis Carroll will work). fix #155

This commit is contained in:
Sébastien Lucas 2014-04-30 15:10:37 +02:00
parent d45bbb7ff6
commit 15e78a852a
3 changed files with 42 additions and 1 deletions

View file

@ -801,7 +801,7 @@ class PageQueryResult extends Page
$array = Book::getBooksByStartingLetter ('%' . $this->query, $n, NULL, $numberPerPage);
break;
case self::SCOPE_AUTHOR :
$array = Author::getAuthorsByStartingLetter ('%' . $this->query);
$array = Author::getAuthorsForSearch ('%' . $this->query);
break;
case self::SCOPE_SERIES :
$array = Serie::getAllSeriesByQuery ($this->query);