diff --git a/apps/common/templates/generic_list_subtemplate.html b/apps/common/templates/generic_list_subtemplate.html index 01626585ad..078dafb24f 100644 --- a/apps/common/templates/generic_list_subtemplate.html +++ b/apps/common/templates/generic_list_subtemplate.html @@ -27,26 +27,28 @@
- {% if multi_select or multi_select_as_buttons %} - {% if multi_select_as_buttons %} - {% get_multi_item_links as multi_item_links %} - - {% else %} - {% with "true" as form_hide_required_text %} - {% get_multi_item_links_form %} - {% endwith %} - - {% endif %} + {% if object_list %} + {% if multi_select or multi_select_as_buttons %} + {% if multi_select_as_buttons %} + {% get_multi_item_links as multi_item_links %} + + {% else %} + {% with "true" as form_hide_required_text %} + {% get_multi_item_links_form %} + {% endwith %} + + {% endif %} + {% endif %} {% endif %} {% if scrollable_content %} @@ -135,26 +137,28 @@ {% endif %} - {% if multi_select or multi_select_as_buttons %} - {% if multi_select_as_buttons %} - {% get_multi_item_links as multi_item_links %} - - {% else %} - {% with "true" as form_hide_required_text %} - {% get_multi_item_links_form %} - {% endwith %} - - {% endif %} + {% if object_list %} + {% if multi_select or multi_select_as_buttons %} + {% if multi_select_as_buttons %} + {% get_multi_item_links as multi_item_links %} + + {% else %} + {% with "true" as form_hide_required_text %} + {% get_multi_item_links_form %} + {% endwith %} + + {% endif %} + {% endif %} {% endif %}
{% paginate %}