Support other plugins with @query in query lists

This commit is contained in:
Alexander Meindl 2020-07-29 06:22:20 +02:00
parent 9f8a0de16d
commit a1c3b083ac

View File

@ -20,6 +20,8 @@
= textilizable query, :description
- if count.positive?
/ required by some helpers of other plugins
- @query = query
= render partial: query_block[:list_partial],
locals: { query_block[:entities_var] => query.send(query_block[:entries_method],
limit: settings[:max_entries] || DashboardContent::DEFAULT_MAX_ENTRIES),