1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Added further tests, Fixed speed_update issues, improved search result query count

This commit is contained in:
Dan Brown
2015-11-29 17:33:25 +00:00
parent 22f8a408fa
commit 62338e4a8f
12 changed files with 115 additions and 53 deletions

View File

@ -141,7 +141,7 @@ class BookRepo
*/
public function getNewPriority($book)
{
$lastElem = $book->children()->pop();
$lastElem = $this->getChildren($book)->pop();
return $lastElem ? $lastElem->priority + 1 : 0;
}