Fix author list when a book has many author. Was broken for a long time.
这个提交存在于:
父节点
8c7f4f26cc
当前提交
bb201b4031
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
|
@ -82,7 +82,7 @@ order by substr (upper (sort), 1, 1)", "substr (upper (sort), 1, 1) as title, co
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getAuthorByBookId ($bookId) {
|
public static function getAuthorByBookId ($bookId) {
|
||||||
$result = parent::getDb ()->prepare('select ' . self::AUTHOR_COLUMNS . ' from authors, books_authors_link
|
$result = parent::getDb ()->prepare('select authors.id as id, authors.name as name, authors.sort as sort from authors, books_authors_link
|
||||||
where author = authors.id
|
where author = authors.id
|
||||||
and book = ?');
|
and book = ?');
|
||||||
$result->execute (array ($bookId));
|
$result->execute (array ($bookId));
|
||||||
|
|
正在加载…
添加表格
添加链接
在新工单中引用