Skip to content

Commit

Permalink
Fix for the new frontpage logic
Browse files Browse the repository at this point in the history
Fixes #16
  • Loading branch information
MagnusEnger committed Nov 6, 2014
1 parent f8c90aa commit d61790e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/index.tt
Expand Up @@ -135,7 +135,7 @@
[%# Check that this book has at least one item that is not deleted and that is available to the chosen library %]
[%# FIXME This solutin is probably not ideal, it would probably be better to limit in the DBIC query in the route %]
[% SET available_items = 0 %]
[% FOREACH file IN book.files %]
[% FOREACH file IN listitem.book.files %]
[% FOREACH item IN file.items %]
[% IF item.deleted != 1 && item.is_available_to( session.chosen_library ) == 1 %]
[% available_items = available_items + 1 %]
Expand Down

0 comments on commit d61790e

Please sign in to comment.