Jonathan Druart
cb0e33f046
The previous query was wrong. If an item type did not contain the translation in the interface's language, the ->search_with_localization did not return it at all. What we need is definitely to add a second condition on the join. For reference: http://search.cpan.org/dist/DBIx-Class/lib/DBIx/Class/Relationship/Base.pm#condition https://blog.afoolishmanifesto.com/posts/dbix-class-parameterized-relationships/ That sounds hacky but seems to be the DBIx::Class path to follow. Bug 17835: follow-up Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Lari Taskula <lari.taskula@jns.fi> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> |
||
---|---|---|
.. | ||
csv | ||
acquisitions_stats.tt | ||
bor_issues_top.tt | ||
borrowers_out.tt | ||
borrowers_stats.tt | ||
cash_register_stats.tt | ||
cat_issues_top.tt | ||
catalogue_out.tt | ||
catalogue_stats.tt | ||
dictionary.tt | ||
guided_reports_start.tt | ||
issues_avg_stats.tt | ||
issues_by_borrower_category.tt | ||
issues_stats.tt | ||
itemslost.tt | ||
itemtypes.tt | ||
orders_by_budget.tt | ||
reports-home.tt | ||
reserves_stats.tt | ||
serials_stats.tt | ||
stats_screen.tt |